parent
87abcc685d
commit
afc74fbc65
@ -1,41 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-misc/colordiff/colordiff-1.0.13.ebuild,v 1.12 2014/11/14 07:03:25 jlec Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit prefix
|
||||
|
||||
DESCRIPTION="Colorizes output of diff"
|
||||
HOMEPAGE="http://www.colordiff.org/"
|
||||
SRC_URI="http://www.colordiff.org/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sparc x86 ~ppc-aix ~x86-fbsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="
|
||||
dev-lang/perl
|
||||
sys-apps/diffutils
|
||||
!dev-util/cdiff"
|
||||
|
||||
src_prepare() {
|
||||
# set proper etcdir for Gentoo Prefix
|
||||
sed \
|
||||
-e "s:'/etc:'@GENTOO_PORTAGE_EPREFIX@/etc:" \
|
||||
-i "${S}/colordiff.pl" || die "sed etcdir failed"
|
||||
eprefixify "${S}"/colordiff.pl
|
||||
}
|
||||
|
||||
# This package has a makefile, but we don't want to run it
|
||||
src_compile() { :; }
|
||||
|
||||
src_install() {
|
||||
newbin ${PN}{.pl,}
|
||||
newbin cdiff.sh cdiff
|
||||
insinto /etc
|
||||
doins colordiffrc colordiffrc-lightbg
|
||||
dodoc BUGS CHANGES README
|
||||
doman {cdiff,colordiff}.1
|
||||
}
|
@ -1,68 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-misc/devtodo/devtodo-0.1.20-r2.ebuild,v 1.10 2014/11/11 10:51:41 ago Exp $
|
||||
|
||||
EAPI="5"
|
||||
|
||||
AUTOTOOLS_AUTORECONF=1
|
||||
AUTOTOOLS_IN_SOURCE_BUILD=1
|
||||
inherit autotools-utils bash-completion-r1 eutils flag-o-matic toolchain-funcs
|
||||
|
||||
DESCRIPTION="A nice command line todo list for developers"
|
||||
HOMEPAGE="http://swapoff.org/DevTodo"
|
||||
SRC_URI="http://swapoff.org/files/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 arm hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-linux ~x86-linux ~ppc-macos"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="
|
||||
>=sys-libs/ncurses-5.2
|
||||
>=sys-libs/readline-4.1"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
DOCS=( AUTHORS ChangeLog QuickStart README doc/scripts.sh doc/scripts.tcsh doc/todorc.example )
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${P}-gentoo.diff"
|
||||
"${FILESDIR}/${P}-gcc43.patch"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
# fix regex.h issue on case-insensitive file-systems #332235
|
||||
sed \
|
||||
-e 's/Regex.h/DTRegex.h/' \
|
||||
-i util/Lexer.h util/Makefile.{am,in} util/Regex.cc || die
|
||||
mv util/{,DT}Regex.h || die
|
||||
|
||||
sed \
|
||||
-e "/^LIBS/s:$: $($(tc-getPKG_CONFIG) --libs ncursesw):g" \
|
||||
-i src/Makefile.am || die
|
||||
|
||||
autotools-utils_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
replace-flags -O[23] -O1
|
||||
|
||||
local myeconfargs=(
|
||||
--sysconfdir="${EPREFIX}/etc/devtodo"
|
||||
)
|
||||
autotools-utils_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
autotools-utils_src_install
|
||||
|
||||
newbashcomp contrib/${PN}.bash-completion ${PN}
|
||||
rm contrib/${PN}.bash-completion || die 'rm failed'
|
||||
|
||||
bashcomp_alias devtodo tda tdd tde tdr todo
|
||||
|
||||
dodoc -r contrib
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "Because of a conflict with app-misc/tdl, the tdl symbolic link"
|
||||
elog "and manual page have been removed."
|
||||
}
|
@ -1,3 +1,4 @@
|
||||
DIST geierlein-0.6.1.tar.gz 994969 SHA256 f7f66b3c4fba41b071cc5c7339ec76854d12e515f45be185f83a84e2ab015474 SHA512 6810baed24999c069922488fd2efa6b0095174621088f48245927b8a3a89dd6a683db76016649ba143e3cc0cff29ff3699c3afa12a00fce067ddcab61197bfe3 WHIRLPOOL 3b1358f2c71bf337179a0dee4259e3358d963be832ec9d8e4e4d328530cf729478543a990351a1b98eb58e3c885c4d3c46515ce86cdd843c0af340109613be7c
|
||||
DIST geierlein-0.6.2.tar.gz 994962 SHA256 1a247c95122758f86fdebd5b3f55bcdd9c6c04cdf58d33eb874c9cc4cc7dc731 SHA512 3eacf273d85fb23bd763cea9db0e09fecbf410b6e75eec30fd0a44df68a43d478e1555b6f64468b4a3acf26bc6cb5a9c67f7a39ed30ef3a42255ff740a883c5c WHIRLPOOL acb5375d03547be8a49e58f71011c485c88cc65b640a16d630a5fc773056744b53ff38766dddc91d2bc86f198c85f647a3b39b7adcbc05dfe2edb84d8760f21c
|
||||
DIST geierlein-0.7.1.tar.gz 999105 SHA256 63bfba1cea558797c300a1e96122fb56a9ae6a83be02e82681ddfcdbb37515ce SHA512 6cb6f8b45406e51c8fdf407cc0b70dae19327556daff3db2ac34908775ebed51434dd5878254495f150bf0487eda65647aa79f7e03fb073b8c2486b8bfa691fc WHIRLPOOL 00100fd7732ca3500b00aa428979ce36c06ae992b4e4917c8b72d07cd051ef75fc8c0047acd3fc0e2f2dd3f503162e4be83b5173e238745f53cc25cb129daec3
|
||||
DIST geierlein-0.7.3.tar.gz 999078 SHA256 81c3e7f5d37fe275260e6a00123c335ffb2deb056c657c5c5e9b7e78724a457c SHA512 b21d2e66ff5a7474be3c05aa7cb25be7c4dc3cb3c1728c54b64942827a822aeacea0b1fe3b04e403504bb01e7fd7fbf9e6cdc4d7bd522d1000915dc6a27114f8 WHIRLPOOL 52a5ae2dfb33f66e588b152928c68e4bf49d2afb22af89742e786f29fed2a0939c3422f2c71baa87de1025465bb294b3720f4065703bd2e8f2c036f04761adc3
|
||||
|
@ -0,0 +1,30 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-office/geierlein/geierlein-0.7.3.ebuild,v 1.1 2015/02/12 13:17:17 hanno Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
DESCRIPTION="Submit tax forms (Umsatzsteuervoranmeldung) to the german digital tax project ELSTER"
|
||||
HOMEPAGE="http://stesie.github.com/geierlein/"
|
||||
SRC_URI="https://github.com/stesie/geierlein/archive/V${PV}.tar.gz -> ${P}.tar.gz"
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE=""
|
||||
RDEPEND="|| ( www-client/firefox www-client/firefox-bin )"
|
||||
DEPEND=""
|
||||
|
||||
# needs nodejs and a couple of modules we don't have packaged
|
||||
RESTRICT="test"
|
||||
|
||||
src_compile() {
|
||||
emake prefix=/usr
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake \
|
||||
DESTDIR="${D}" \
|
||||
prefix=/usr \
|
||||
install || die
|
||||
dodoc README.md
|
||||
}
|
@ -1,223 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-text/calibre/calibre-1.2.ebuild,v 1.5 2014/10/16 20:49:55 zmedico Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils fdo-mime bash-completion-r1 multilib toolchain-funcs
|
||||
|
||||
DESCRIPTION="Ebook management application"
|
||||
HOMEPAGE="http://calibre-ebook.com/"
|
||||
[[ ${PV} == ${PV%.*}.${PV#*.} ]] && MY_PV=${PV}.0 || MY_PV=${PV}
|
||||
SRC_URI="http://sourceforge.net/projects/calibre/files/${MY_PV}/${PN}-${MY_PV}.tar.xz"
|
||||
|
||||
# Restrict mirror due non-free prs500 fonts (bug #470212).
|
||||
RESTRICT="mirror"
|
||||
|
||||
LICENSE="
|
||||
GPL-3+
|
||||
GPL-3
|
||||
GPL-2+
|
||||
GPL-2
|
||||
GPL-1+
|
||||
LGPL-3+
|
||||
LGPL-2.1+
|
||||
LGPL-2.1
|
||||
BSD
|
||||
MIT
|
||||
Old-MIT
|
||||
Apache-2.0
|
||||
public-domain
|
||||
|| ( Artistic GPL-1+ )
|
||||
CC-BY-3.0
|
||||
OFL-1.1
|
||||
PSF-2
|
||||
unRAR
|
||||
"
|
||||
|
||||
KEYWORDS="amd64 x86"
|
||||
|
||||
SLOT="0"
|
||||
|
||||
IUSE="+udisks"
|
||||
|
||||
COMMON_DEPEND="
|
||||
>=app-text/podofo-0.8.2:=
|
||||
>=app-text/poppler-0.12.3-r3:=[qt4,xpdf-headers(+)]
|
||||
>=dev-lang/python-2.7.1:2.7[sqlite,ssl]
|
||||
>=dev-libs/chmlib-0.40:=
|
||||
>=dev-libs/icu-4.4:=
|
||||
dev-python/apsw
|
||||
>=dev-python/beautifulsoup-3.0.5:python-2
|
||||
dev-python/netifaces
|
||||
>=dev-python/dnspython-1.6.0
|
||||
>=dev-python/cssselect-0.7.1
|
||||
>=dev-python/cssutils-0.9.9
|
||||
>=dev-python/dbus-python-0.82.2
|
||||
virtual/python-imaging
|
||||
>=dev-python/lxml-2.2.1
|
||||
>=dev-python/mechanize-0.1.11
|
||||
>=dev-python/python-dateutil-1.4.1[python_targets_python2_7(-)]
|
||||
>=dev-python/PyQt4-4.9.1[X,svg,webkit]
|
||||
media-fonts/liberation-fonts
|
||||
>=media-gfx/imagemagick-6.5.9[jpeg,png]
|
||||
>=media-libs/freetype-2:=
|
||||
>=media-libs/libwmf-0.2.8
|
||||
>=media-libs/libmtp-1.1.4:=
|
||||
virtual/libusb:1=
|
||||
dev-qt/qtdbus:4=
|
||||
dev-qt/qtsvg:4=
|
||||
>=x11-misc/xdg-utils-1.0.2-r2"
|
||||
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
udisks? ( || ( sys-fs/udisks:2 sys-fs/udisks:0 ) )"
|
||||
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
>=dev-python/setuptools-0.6_rc5
|
||||
>=virtual/podofo-build-0.8.2"
|
||||
|
||||
S=${WORKDIR}/${PN}
|
||||
|
||||
src_prepare() {
|
||||
# Fix outdated version constant.
|
||||
#sed -e "s#\\(^numeric_version =\\).*#\\1 (${PV//./, })#" \
|
||||
# -i src/calibre/constants.py || \
|
||||
# die "sed failed to patch constants.py"
|
||||
|
||||
# Avoid sandbox violation in /usr/share/gnome/apps when linux.py
|
||||
# calls xdg-* (bug #258938).
|
||||
sed -e "s|'xdg-desktop-menu', 'install'|\\0, '--mode', 'user'|" \
|
||||
-e "s|check_call(\\['xdg-desktop-menu', 'forceupdate'\\])|#\\0|" \
|
||||
-e "s|\\(CurrentDir(tdir)\\), \\\\\$|\\1:|" \
|
||||
-e "s|PreserveMIMEDefaults():||" \
|
||||
-e "s|xdg-icon-resource install|\\0 --mode user|" \
|
||||
-e "s|cc(\\['xdg-desktop-menu', 'forceupdate'\\])|#\\0|" \
|
||||
-e "s|xdg-mime install|\\0 --mode user|" \
|
||||
-i src/calibre/linux.py || die "sed failed to patch linux.py"
|
||||
|
||||
# Disable unnecessary privilege dropping for bug #287067.
|
||||
sed -e "s:if os.geteuid() == 0:if False and os.geteuid() == 0:" \
|
||||
-i setup/install.py || die "sed failed to patch install.py"
|
||||
|
||||
sed -e "/^ self\\.check_call(qmc + \\[.*\\.pro'\\])$/a\
|
||||
\\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ self.check_call(['sed', \
|
||||
'-e', 's|^CFLAGS .*|\\\\\\\\0 ${CFLAGS}|', \
|
||||
'-e', 's|^CXXFLAGS .*|\\\\\\\\0 ${CXXFLAGS}|', \
|
||||
'-e', 's|^LFLAGS .*|\\\\\\\\0 ${LDFLAGS}|', \
|
||||
'-i', 'Makefile'])" \
|
||||
-i setup/extensions.py || die "sed failed to patch extensions.py"
|
||||
|
||||
# no_updates: do not annoy user with "new version is availible all the time
|
||||
# disable_plugins: walking sec-hole, wait for upstream to use GHNS interface
|
||||
epatch \
|
||||
"${FILESDIR}/${PN}-no_updates_dialog.patch" \
|
||||
"${FILESDIR}/${PN}-disable_plugins.patch"
|
||||
|
||||
# Remove non-free fonts (bug #470212).
|
||||
rm -r resources/fonts/prs500 || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# Bypass kbuildsycoca and update-mime-database in order to
|
||||
# avoid sandbox violations if xdg-mime tries to call them.
|
||||
cat - > "${T}/kbuildsycoca" <<-EOF
|
||||
#!${BASH}
|
||||
exit 0
|
||||
EOF
|
||||
|
||||
cp "${T}"/{kbuildsycoca,update-mime-database}
|
||||
chmod +x "${T}"/{kbuildsycoca,update-mime-database}
|
||||
|
||||
# Unset DISPLAY in order to prevent xdg-mime from triggering a sandbox
|
||||
# violation with kbuildsycoca as in bug #287067, comment #13.
|
||||
export -n DISPLAY
|
||||
|
||||
# Bug #352625 - Some LANGUAGE values can trigger the following ValueError:
|
||||
# File "/usr/lib/python2.6/locale.py", line 486, in getdefaultlocale
|
||||
# return _parse_localename(localename)
|
||||
# File "/usr/lib/python2.6/locale.py", line 418, in _parse_localename
|
||||
# raise ValueError, 'unknown locale: %s' % localename
|
||||
#ValueError: unknown locale: 46
|
||||
export -n LANGUAGE
|
||||
|
||||
# Bug #295672 - Avoid sandbox violation in ~/.config by forcing
|
||||
# variables to point to our fake temporary $HOME.
|
||||
export HOME="${T}/fake_homedir"
|
||||
export XDG_CONFIG_HOME="${HOME}/.config"
|
||||
export XDG_DATA_HOME="${HOME}/.local/share"
|
||||
export CALIBRE_CONFIG_DIRECTORY="${XDG_CONFIG_HOME}/calibre"
|
||||
mkdir -p "${XDG_CONFIG_HOME}" "${CALIBRE_CONFIG_DIRECTORY}"
|
||||
|
||||
tc-export CC CXX
|
||||
# Bug #334243 - respect LDFLAGS when building calibre-mount-helper
|
||||
export OVERRIDE_CFLAGS="$CFLAGS" OVERRIDE_LDFLAGS="$LDFLAGS"
|
||||
local libdir=$(get_libdir)
|
||||
[[ -n $libdir ]] || die "get_libdir returned an empty string"
|
||||
|
||||
# Bug #472690 - Avoid sandbox violation for /dev/dri/card0.
|
||||
local x
|
||||
for x in /dev/dri/card[0-9] ; do
|
||||
[[ -e ${x} ]] && addpredict ${x}
|
||||
done
|
||||
|
||||
dodir "/usr/$(get_libdir)/python2.7/site-packages" # for init_calibre.py
|
||||
PATH=${T}:${PATH} PYTHONPATH=${S}/src${PYTHONPATH:+:}${PYTHONPATH} \
|
||||
"${EPREFIX}"/usr/bin/python2.7 setup.py install \
|
||||
--root="${D}" \
|
||||
--prefix="${EPREFIX}/usr" \
|
||||
--libdir="${EPREFIX}/usr/${libdir}" \
|
||||
--staging-root="${ED}usr" \
|
||||
--staging-libdir="${ED}usr/${libdir}" || die
|
||||
|
||||
grep -rlZ "${ED}" "${ED}" | xargs -0 sed -e "s:${D}:/:g" -i ||
|
||||
die "failed to fix harcoded \$D in paths"
|
||||
|
||||
# Remove dummy calibre-mount-helper which is unused since calibre-0.8.25
|
||||
# due to bug #389515 (instead, calibre now calls udisks via dbus).
|
||||
rm "${ED}usr/bin/calibre-mount-helper" || die
|
||||
|
||||
# The menu entries end up here due to '--mode user' being added to
|
||||
# xdg-* options in src_prepare.
|
||||
dodir /usr/share/mime/packages
|
||||
chmod -fR a+rX,u+w,g-w,o-w "${HOME}"/.local
|
||||
mv "${HOME}"/.local/share/mime/packages/* "${ED}"usr/share/mime/packages/ ||
|
||||
die "failed to register mime types"
|
||||
dodir /usr/share/icons
|
||||
mv "${HOME}"/.local/share/icons/* "${ED}"usr/share/icons/ ||
|
||||
die "failed to install icon files"
|
||||
|
||||
domenu "${HOME}"/.local/share/applications/*.desktop ||
|
||||
die "failed to install .desktop menu files"
|
||||
|
||||
dobashcomp "${ED}"usr/etc/bash_completion.d/calibre
|
||||
rm -r "${ED}"usr/etc/bash_completion.d
|
||||
find "${ED}"usr/etc -type d -empty -delete
|
||||
|
||||
cd "${ED}"/usr/share/calibre/fonts/liberation || die
|
||||
local x
|
||||
for x in * ; do
|
||||
[[ -f ${EROOT}usr/share/fonts/liberation-fonts/${x} ]] || continue
|
||||
ln -sf "../../../fonts/liberation-fonts/${x}" "${x}" || die
|
||||
done
|
||||
|
||||
einfo "Converting python shebangs"
|
||||
while read -r -d $'\0' ; do
|
||||
local shebang=$(head -n1 "$REPLY")
|
||||
if [[ ${shebang} == "#!"*python* ]] ; then
|
||||
sed -i -e "1s:.*:#!${EPREFIX}/usr/bin/python2.7:" "$REPLY" || \
|
||||
die "sed failed"
|
||||
fi
|
||||
done < <(find "${ED}" -type f -print0)
|
||||
|
||||
einfo "Compiling python modules"
|
||||
"${EPREFIX}"/usr/bin/python2.7 -m compileall -q -f \
|
||||
-d "${EPREFIX}"/usr/lib/calibre "${ED}"usr/lib/calibre || die
|
||||
|
||||
newinitd "${FILESDIR}"/calibre-server.init calibre-server
|
||||
newconfd "${FILESDIR}"/calibre-server.conf calibre-server
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
fdo-mime_desktop_database_update
|
||||
fdo-mime_mime_database_update
|
||||
}
|
@ -1,211 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-text/calibre/calibre-1.25.ebuild,v 1.3 2014/10/16 20:49:55 zmedico Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils fdo-mime bash-completion-r1 multilib toolchain-funcs
|
||||
|
||||
DESCRIPTION="Ebook management application"
|
||||
HOMEPAGE="http://calibre-ebook.com/"
|
||||
[[ ${PV} == ${PV%.*}.${PV#*.} ]] && MY_PV=${PV}.0 || MY_PV=${PV}
|
||||
SRC_URI="http://sourceforge.net/projects/calibre/files/${MY_PV}/${PN}-${MY_PV}.tar.xz"
|
||||
|
||||
LICENSE="
|
||||
GPL-3+
|
||||
GPL-3
|
||||
GPL-2+
|
||||
GPL-2
|
||||
GPL-1+
|
||||
LGPL-3+
|
||||
LGPL-2.1+
|
||||
LGPL-2.1
|
||||
BSD
|
||||
MIT
|
||||
Old-MIT
|
||||
Apache-2.0
|
||||
public-domain
|
||||
|| ( Artistic GPL-1+ )
|
||||
CC-BY-3.0
|
||||
OFL-1.1
|
||||
PSF-2
|
||||
unRAR
|
||||
"
|
||||
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
SLOT="0"
|
||||
IUSE="+udisks"
|
||||
|
||||
COMMON_DEPEND="
|
||||
>=app-text/podofo-0.8.2:=
|
||||
>=app-text/poppler-0.12.3-r3:=[qt4,xpdf-headers(+)]
|
||||
>=dev-lang/python-2.7.1:2.7[sqlite,ssl]
|
||||
>=dev-libs/chmlib-0.40:=
|
||||
>=dev-libs/icu-4.4:=
|
||||
dev-python/apsw
|
||||
>=dev-python/beautifulsoup-3.0.5:python-2
|
||||
dev-python/netifaces
|
||||
>=dev-python/dnspython-1.6.0
|
||||
>=dev-python/cssselect-0.7.1
|
||||
>=dev-python/cssutils-0.9.9
|
||||
>=dev-python/dbus-python-0.82.2
|
||||
virtual/python-imaging
|
||||
>=dev-python/lxml-2.2.1
|
||||
>=dev-python/mechanize-0.1.11
|
||||
>=dev-python/python-dateutil-1.4.1[python_targets_python2_7(-)]
|
||||
>=dev-python/PyQt4-4.9.1[X,svg,webkit]
|
||||
media-fonts/liberation-fonts
|
||||
>=media-gfx/imagemagick-6.5.9[jpeg,png]
|
||||
>=media-libs/freetype-2:=
|
||||
>=media-libs/libwmf-0.2.8
|
||||
>=media-libs/libmtp-1.1.4:=
|
||||
virtual/libusb:1=
|
||||
dev-qt/qtdbus:4=
|
||||
dev-qt/qtsvg:4=
|
||||
>=x11-misc/xdg-utils-1.0.2-r2"
|
||||
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
udisks? ( || ( sys-fs/udisks:2 sys-fs/udisks:0 ) )"
|
||||
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
>=dev-python/setuptools-0.6_rc5
|
||||
>=virtual/podofo-build-0.8.2"
|
||||
|
||||
S=${WORKDIR}/${PN}
|
||||
|
||||
src_prepare() {
|
||||
# Fix outdated version constant.
|
||||
#sed -e "s#\\(^numeric_version =\\).*#\\1 (${PV//./, })#" \
|
||||
# -i src/calibre/constants.py || \
|
||||
# die "sed failed to patch constants.py"
|
||||
|
||||
# Avoid sandbox violation in /usr/share/gnome/apps when linux.py
|
||||
# calls xdg-* (bug #258938).
|
||||
sed -e "s|'xdg-desktop-menu', 'install'|\\0, '--mode', 'user'|" \
|
||||
-e "s|check_call(\\['xdg-desktop-menu', 'forceupdate'\\])|#\\0|" \
|
||||
-e "s|\\(CurrentDir(tdir)\\), \\\\\$|\\1:|" \
|
||||
-e "s|PreserveMIMEDefaults():||" \
|
||||
-e "s|xdg-icon-resource install|\\0 --mode user|" \
|
||||
-e "s|cc(\\['xdg-desktop-menu', 'forceupdate'\\])|#\\0|" \
|
||||
-e "s|xdg-mime install|\\0 --mode user|" \
|
||||
-i src/calibre/linux.py || die "sed failed to patch linux.py"
|
||||
|
||||
# Disable unnecessary privilege dropping for bug #287067.
|
||||
sed -e "s:if os.geteuid() == 0:if False and os.geteuid() == 0:" \
|
||||
-i setup/install.py || die "sed failed to patch install.py"
|
||||
|
||||
sed -e "/^ self\\.check_call(qmc + \\[.*\\.pro'\\])$/a\
|
||||
\\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ self.check_call(['sed', \
|
||||
'-e', 's|^CFLAGS .*|\\\\\\\\0 ${CFLAGS}|', \
|
||||
'-e', 's|^CXXFLAGS .*|\\\\\\\\0 ${CXXFLAGS}|', \
|
||||
'-e', 's|^LFLAGS .*|\\\\\\\\0 ${LDFLAGS}|', \
|
||||
'-i', 'Makefile'])" \
|
||||
-i setup/extensions.py || die "sed failed to patch extensions.py"
|
||||
|
||||
# no_updates: do not annoy user with "new version is availible all the time
|
||||
# disable_plugins: walking sec-hole, wait for upstream to use GHNS interface
|
||||
epatch \
|
||||
"${FILESDIR}/${PN}-1.20-no_updates_dialog.patch" \
|
||||
"${FILESDIR}/${PN}-disable_plugins.patch"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# Bypass kbuildsycoca and update-mime-database in order to
|
||||
# avoid sandbox violations if xdg-mime tries to call them.
|
||||
cat - > "${T}/kbuildsycoca" <<-EOF
|
||||
#!${BASH}
|
||||
exit 0
|
||||
EOF
|
||||
|
||||
cp "${T}"/{kbuildsycoca,update-mime-database}
|
||||
chmod +x "${T}"/{kbuildsycoca,update-mime-database}
|
||||
|
||||
# Unset DISPLAY in order to prevent xdg-mime from triggering a sandbox
|
||||
# violation with kbuildsycoca as in bug #287067, comment #13.
|
||||
export -n DISPLAY
|
||||
|
||||
# Bug #352625 - Some LANGUAGE values can trigger the following ValueError:
|
||||
# File "/usr/lib/python2.6/locale.py", line 486, in getdefaultlocale
|
||||
# return _parse_localename(localename)
|
||||
# File "/usr/lib/python2.6/locale.py", line 418, in _parse_localename
|
||||
# raise ValueError, 'unknown locale: %s' % localename
|
||||
#ValueError: unknown locale: 46
|
||||
export -n LANGUAGE
|
||||
|
||||
# Bug #295672 - Avoid sandbox violation in ~/.config by forcing
|
||||
# variables to point to our fake temporary $HOME.
|
||||
export HOME="${T}/fake_homedir"
|
||||
export XDG_CONFIG_HOME="${HOME}/.config"
|
||||
export XDG_DATA_HOME="${HOME}/.local/share"
|
||||
export CALIBRE_CONFIG_DIRECTORY="${XDG_CONFIG_HOME}/calibre"
|
||||
mkdir -p "${XDG_CONFIG_HOME}" "${CALIBRE_CONFIG_DIRECTORY}"
|
||||
|
||||
tc-export CC CXX
|
||||
# Bug #334243 - respect LDFLAGS when building extensions
|
||||
export OVERRIDE_CFLAGS="$CFLAGS" OVERRIDE_LDFLAGS="$LDFLAGS"
|
||||
local libdir=$(get_libdir)
|
||||
[[ -n $libdir ]] || die "get_libdir returned an empty string"
|
||||
|
||||
# Bug #472690 - Avoid sandbox violation for /dev/dri/card0.
|
||||
local x
|
||||
for x in /dev/dri/card[0-9] ; do
|
||||
[[ -e ${x} ]] && addpredict ${x}
|
||||
done
|
||||
|
||||
dodir "/usr/$(get_libdir)/python2.7/site-packages" # for init_calibre.py
|
||||
PATH=${T}:${PATH} PYTHONPATH=${S}/src${PYTHONPATH:+:}${PYTHONPATH} \
|
||||
"${EPREFIX}"/usr/bin/python2.7 setup.py install \
|
||||
--root="${D}" \
|
||||
--prefix="${EPREFIX}/usr" \
|
||||
--libdir="${EPREFIX}/usr/${libdir}" \
|
||||
--staging-root="${ED}usr" \
|
||||
--staging-libdir="${ED}usr/${libdir}" || die
|
||||
|
||||
grep -rlZ "${ED}" "${ED}" | xargs -0 sed -e "s:${D}:/:g" -i ||
|
||||
die "failed to fix harcoded \$D in paths"
|
||||
|
||||
# The menu entries end up here due to '--mode user' being added to
|
||||
# xdg-* options in src_prepare.
|
||||
dodir /usr/share/mime/packages
|
||||
chmod -fR a+rX,u+w,g-w,o-w "${HOME}"/.local
|
||||
mv "${HOME}"/.local/share/mime/packages/* "${ED}"usr/share/mime/packages/ ||
|
||||
die "failed to register mime types"
|
||||
dodir /usr/share/icons
|
||||
mv "${HOME}"/.local/share/icons/* "${ED}"usr/share/icons/ ||
|
||||
die "failed to install icon files"
|
||||
|
||||
domenu "${HOME}"/.local/share/applications/*.desktop ||
|
||||
die "failed to install .desktop menu files"
|
||||
|
||||
dobashcomp "${ED}"usr/etc/bash_completion.d/calibre
|
||||
rm -r "${ED}"usr/etc/bash_completion.d
|
||||
find "${ED}"usr/etc -type d -empty -delete
|
||||
|
||||
cd "${ED}"/usr/share/calibre/fonts/liberation || die
|
||||
local x
|
||||
for x in * ; do
|
||||
[[ -f ${EROOT}usr/share/fonts/liberation-fonts/${x} ]] || continue
|
||||
ln -sf "../../../fonts/liberation-fonts/${x}" "${x}" || die
|
||||
done
|
||||
|
||||
einfo "Converting python shebangs"
|
||||
while read -r -d $'\0' ; do
|
||||
local shebang=$(head -n1 "$REPLY")
|
||||
if [[ ${shebang} == "#!"*python* ]] ; then
|
||||
sed -i -e "1s:.*:#!${EPREFIX}/usr/bin/python2.7:" "$REPLY" || \
|
||||
die "sed failed"
|
||||
fi
|
||||
done < <(find "${ED}" -type f -print0)
|
||||
|
||||
einfo "Compiling python modules"
|
||||
"${EPREFIX}"/usr/bin/python2.7 -m compileall -q -f \
|
||||
-d "${EPREFIX}"/usr/lib/calibre "${ED}"usr/lib/calibre || die
|
||||
|
||||
newinitd "${FILESDIR}"/calibre-server.init calibre-server
|
||||
newconfd "${FILESDIR}"/calibre-server.conf calibre-server
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
fdo-mime_desktop_database_update
|
||||
fdo-mime_mime_database_update
|
||||
}
|
@ -1,211 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-text/calibre/calibre-1.29.ebuild,v 1.3 2014/10/16 20:49:55 zmedico Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils fdo-mime bash-completion-r1 multilib toolchain-funcs
|
||||
|
||||
DESCRIPTION="Ebook management application"
|
||||
HOMEPAGE="http://calibre-ebook.com/"
|
||||
[[ ${PV} == ${PV%.*}.${PV#*.} ]] && MY_PV=${PV}.0 || MY_PV=${PV}
|
||||
SRC_URI="http://sourceforge.net/projects/calibre/files/${MY_PV}/${PN}-${MY_PV}.tar.xz"
|
||||
|
||||
LICENSE="
|
||||
GPL-3+
|
||||
GPL-3
|
||||
GPL-2+
|
||||
GPL-2
|
||||
GPL-1+
|
||||
LGPL-3+
|
||||
LGPL-2.1+
|
||||
LGPL-2.1
|
||||
BSD
|
||||
MIT
|
||||
Old-MIT
|
||||
Apache-2.0
|
||||
public-domain
|
||||
|| ( Artistic GPL-1+ )
|
||||
CC-BY-3.0
|
||||
OFL-1.1
|
||||
PSF-2
|
||||
unRAR
|
||||
"
|
||||
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
SLOT="0"
|
||||
IUSE="+udisks"
|
||||
|
||||
COMMON_DEPEND="
|
||||
>=app-text/podofo-0.8.2:=
|
||||
>=app-text/poppler-0.12.3-r3:=[qt4,xpdf-headers(+)]
|
||||
>=dev-lang/python-2.7.1:2.7[sqlite,ssl]
|
||||
>=dev-libs/chmlib-0.40:=
|
||||
>=dev-libs/icu-4.4:=
|
||||
dev-python/apsw
|
||||
>=dev-python/beautifulsoup-3.0.5:python-2
|
||||
dev-python/netifaces
|
||||
>=dev-python/dnspython-1.6.0
|
||||
>=dev-python/cssselect-0.7.1
|
||||
>=dev-python/cssutils-0.9.9
|
||||
>=dev-python/dbus-python-0.82.2
|
||||
>=dev-python/lxml-2.2.1
|
||||
>=dev-python/mechanize-0.1.11
|
||||
>=dev-python/python-dateutil-1.4.1[python_targets_python2_7(-)]
|
||||
>=dev-python/PyQt4-4.9.1[X,svg,webkit]
|
||||
dev-qt/qtdbus:4=
|
||||
dev-qt/qtsvg:4=
|
||||
media-fonts/liberation-fonts
|
||||
>=media-gfx/imagemagick-6.5.9[jpeg,png]
|
||||
>=media-libs/freetype-2:=
|
||||
>=media-libs/libwmf-0.2.8
|
||||
>=media-libs/libmtp-1.1.4:=
|
||||
virtual/libusb:1=
|
||||
virtual/python-imaging
|
||||
>=x11-misc/xdg-utils-1.0.2-r2"
|
||||
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
udisks? ( || ( sys-fs/udisks:2 sys-fs/udisks:0 ) )"
|
||||
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
>=dev-python/setuptools-0.6_rc5
|
||||
>=virtual/podofo-build-0.8.2"
|
||||
|
||||
S=${WORKDIR}/${PN}
|
||||
|
||||
src_prepare() {
|
||||
# Fix outdated version constant.
|
||||
#sed -e "s#\\(^numeric_version =\\).*#\\1 (${PV//./, })#" \
|
||||
# -i src/calibre/constants.py || \
|
||||
# die "sed failed to patch constants.py"
|
||||
|
||||
# Avoid sandbox violation in /usr/share/gnome/apps when linux.py
|
||||
# calls xdg-* (bug #258938).
|
||||
sed -e "s|'xdg-desktop-menu', 'install'|\\0, '--mode', 'user'|" \
|
||||
-e "s|check_call(\\['xdg-desktop-menu', 'forceupdate'\\])|#\\0|" \
|
||||
-e "s|\\(CurrentDir(tdir)\\), \\\\\$|\\1:|" \
|
||||
-e "s|PreserveMIMEDefaults():||" \
|
||||
-e "s|xdg-icon-resource install|\\0 --mode user|" \
|
||||
-e "s|cc(\\['xdg-desktop-menu', 'forceupdate'\\])|#\\0|" \
|
||||
-e "s|'xdg-mime', 'install'|\\0, '--mode', 'user'|" \
|
||||
-i src/calibre/linux.py || die "sed failed to patch linux.py"
|
||||
|
||||
# Disable unnecessary privilege dropping for bug #287067.
|
||||
sed -e "s:if os.geteuid() == 0:if False and os.geteuid() == 0:" \
|
||||
-i setup/install.py || die "sed failed to patch install.py"
|
||||
|
||||
sed -e "/^ self\\.check_call(qmc + \\[.*\\.pro'\\])$/a\
|
||||
\\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ self.check_call(['sed', \
|
||||
'-e', 's|^CFLAGS .*|\\\\\\\\0 ${CFLAGS}|', \
|
||||
'-e', 's|^CXXFLAGS .*|\\\\\\\\0 ${CXXFLAGS}|', \
|
||||
'-e', 's|^LFLAGS .*|\\\\\\\\0 ${LDFLAGS}|', \
|
||||
'-i', 'Makefile'])" \
|
||||
-i setup/extensions.py || die "sed failed to patch extensions.py"
|
||||
|
||||
# no_updates: do not annoy user with "new version is availible all the time
|
||||
# disable_plugins: walking sec-hole, wait for upstream to use GHNS interface
|
||||
epatch \
|
||||
"${FILESDIR}/${PN}-1.20-no_updates_dialog.patch" \
|
||||
"${FILESDIR}/${PN}-disable_plugins.patch"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# Bypass kbuildsycoca and update-mime-database in order to
|
||||
# avoid sandbox violations if xdg-mime tries to call them.
|
||||
cat - > "${T}/kbuildsycoca" <<-EOF
|
||||
#!${BASH}
|
||||
exit 0
|
||||
EOF
|
||||
|
||||
cp "${T}"/{kbuildsycoca,update-mime-database}
|
||||
chmod +x "${T}"/{kbuildsycoca,update-mime-database}
|
||||
|
||||
# Unset DISPLAY in order to prevent xdg-mime from triggering a sandbox
|
||||
# violation with kbuildsycoca as in bug #287067, comment #13.
|
||||
export -n DISPLAY
|
||||
|
||||
# Bug #352625 - Some LANGUAGE values can trigger the following ValueError:
|
||||
# File "/usr/lib/python2.6/locale.py", line 486, in getdefaultlocale
|
||||
# return _parse_localename(localename)
|
||||
# File "/usr/lib/python2.6/locale.py", line 418, in _parse_localename
|
||||
# raise ValueError, 'unknown locale: %s' % localename
|
||||
#ValueError: unknown locale: 46
|
||||
export -n LANGUAGE
|
||||
|
||||
# Bug #295672 - Avoid sandbox violation in ~/.config by forcing
|
||||
# variables to point to our fake temporary $HOME.
|
||||
export HOME="${T}/fake_homedir"
|
||||
export XDG_CONFIG_HOME="${HOME}/.config"
|
||||
export XDG_DATA_HOME="${HOME}/.local/share"
|
||||
export CALIBRE_CONFIG_DIRECTORY="${XDG_CONFIG_HOME}/calibre"
|
||||
mkdir -p "${XDG_CONFIG_HOME}" "${CALIBRE_CONFIG_DIRECTORY}"
|
||||
|
||||
tc-export CC CXX
|
||||
# Bug #334243 - respect LDFLAGS when building extensions
|
||||
export OVERRIDE_CFLAGS="$CFLAGS" OVERRIDE_LDFLAGS="$LDFLAGS"
|
||||
local libdir=$(get_libdir)
|
||||
[[ -n $libdir ]] || die "get_libdir returned an empty string"
|
||||
|
||||
# Bug #472690 - Avoid sandbox violation for /dev/dri/card0.
|
||||
local x
|
||||
for x in /dev/dri/card[0-9] ; do
|
||||
[[ -e ${x} ]] && addpredict ${x}
|
||||
done
|
||||
|
||||
dodir "/usr/$(get_libdir)/python2.7/site-packages" # for init_calibre.py
|
||||
PATH=${T}:${PATH} PYTHONPATH=${S}/src${PYTHONPATH:+:}${PYTHONPATH} \
|
||||
"${EPREFIX}"/usr/bin/python2.7 setup.py install \
|
||||
--root="${D}" \
|
||||
--prefix="${EPREFIX}/usr" \
|
||||
--libdir="${EPREFIX}/usr/${libdir}" \
|
||||
--staging-root="${ED}usr" \
|
||||
--staging-libdir="${ED}usr/${libdir}" || die
|
||||
|
||||
grep -rlZ "${ED}" "${ED}" | xargs -0 sed -e "s:${D}:/:g" -i ||
|
||||
die "failed to fix harcoded \$D in paths"
|
||||
|
||||
# The menu entries end up here due to '--mode user' being added to
|
||||
# xdg-* options in src_prepare.
|
||||
dodir /usr/share/mime/packages
|
||||
chmod -fR a+rX,u+w,g-w,o-w "${HOME}"/.local
|
||||
mv "${HOME}"/.local/share/mime/packages/* "${ED}"usr/share/mime/packages/ ||
|
||||
die "failed to register mime types"
|
||||
dodir /usr/share/icons
|
||||
mv "${HOME}"/.local/share/icons/* "${ED}"usr/share/icons/ ||
|
||||
die "failed to install icon files"
|
||||
|
||||
domenu "${HOME}"/.local/share/applications/*.desktop ||
|
||||
die "failed to install .desktop menu files"
|
||||
|
||||
dobashcomp "${ED}"usr/etc/bash_completion.d/calibre
|
||||
rm -r "${ED}"usr/etc/bash_completion.d
|
||||
find "${ED}"usr/etc -type d -empty -delete
|
||||
|
||||
cd "${ED}"/usr/share/calibre/fonts/liberation || die
|
||||
local x
|
||||
for x in * ; do
|
||||
[[ -f ${EROOT}usr/share/fonts/liberation-fonts/${x} ]] || continue
|
||||
ln -sf "../../../fonts/liberation-fonts/${x}" "${x}" || die
|
||||
done
|
||||
|
||||
einfo "Converting python shebangs"
|
||||
while read -r -d $'\0' ; do
|
||||
local shebang=$(head -n1 "$REPLY")
|
||||
if [[ ${shebang} == "#!"*python* ]] ; then
|
||||
sed -i -e "1s:.*:#!${EPREFIX}/usr/bin/python2.7:" "$REPLY" || \
|
||||
die "sed failed"
|
||||
fi
|
||||
done < <(find "${ED}" -type f -print0)
|
||||
|
||||
einfo "Compiling python modules"
|
||||
"${EPREFIX}"/usr/bin/python2.7 -m compileall -q -f \
|
||||
-d "${EPREFIX}"/usr/lib/calibre "${ED}"usr/lib/calibre || die
|
||||
|
||||
newinitd "${FILESDIR}"/calibre-server.init calibre-server
|
||||
newconfd "${FILESDIR}"/calibre-server.conf calibre-server
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
fdo-mime_desktop_database_update
|
||||
fdo-mime_mime_database_update
|
||||
}
|
@ -1,218 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-text/calibre/calibre-1.43.ebuild,v 1.2 2014/10/16 20:49:55 zmedico Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils fdo-mime bash-completion-r1 multilib toolchain-funcs
|
||||
|
||||
DESCRIPTION="Ebook management application"
|
||||
HOMEPAGE="http://calibre-ebook.com/"
|
||||
[[ ${PV} == ${PV%.*}.${PV#*.} ]] && MY_PV=${PV}.0 || MY_PV=${PV}
|
||||
SRC_URI="http://sourceforge.net/projects/calibre/files/${MY_PV}/${PN}-${MY_PV}.tar.xz"
|
||||
|
||||
LICENSE="
|
||||
GPL-3+
|
||||
GPL-3
|
||||
GPL-2+
|
||||
GPL-2
|
||||
GPL-1+
|
||||
LGPL-3+
|
||||
LGPL-2.1+
|
||||
LGPL-2.1
|
||||
BSD
|
||||
MIT
|
||||
Old-MIT
|
||||
Apache-2.0
|
||||
public-domain
|
||||
|| ( Artistic GPL-1+ )
|
||||
CC-BY-3.0
|
||||
OFL-1.1
|
||||
PSF-2
|
||||
unRAR
|
||||
"
|
||||
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
SLOT="0"
|
||||
IUSE="+udisks"
|
||||
|
||||
COMMON_DEPEND="
|
||||
>=app-text/podofo-0.8.2:=
|
||||
>=app-text/poppler-0.20.2:=[qt4,xpdf-headers(+)]
|
||||
>=dev-lang/python-2.7.1:2.7[sqlite,ssl]
|
||||
>=dev-libs/chmlib-0.40:=
|
||||
>=dev-libs/icu-4.4:=
|
||||
>=dev-python/apsw-3.7.17[python_targets_python2_7(-)]
|
||||
>=dev-python/beautifulsoup-3.0.5:python-2[python_targets_python2_7(-)]
|
||||
dev-python/netifaces[python_targets_python2_7(-)]
|
||||
>=dev-python/dnspython-1.6.0[python_targets_python2_7(-)]
|
||||
>=dev-python/cssselect-0.7.1[python_targets_python2_7(-)]
|
||||
>=dev-python/cssutils-0.9.9[python_targets_python2_7(-)]
|
||||
>=dev-python/dbus-python-0.82.2[python_targets_python2_7(-)]
|
||||
>=dev-python/lxml-3.2.1[python_targets_python2_7(-)]
|
||||
>=dev-python/mechanize-0.1.11[python_targets_python2_7(-)]
|
||||
>=dev-python/python-dateutil-1.4.1[python_targets_python2_7(-)]
|
||||
>=dev-python/PyQt4-4.9.6[X,svg,webkit,python_targets_python2_7(-)]
|
||||
dev-qt/qtdbus:4=
|
||||
dev-qt/qtsvg:4=
|
||||
media-fonts/liberation-fonts
|
||||
>=media-gfx/imagemagick-6.5.9[jpeg,png]
|
||||
>=media-libs/freetype-2:=
|
||||
>=media-libs/libwmf-0.2.8
|
||||
>=media-libs/libmtp-1.1.5:=
|
||||
virtual/libusb:1=
|
||||
virtual/python-imaging[python_targets_python2_7(-)]
|
||||
>=x11-misc/xdg-utils-1.0.2-r2"
|
||||
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
udisks? ( || ( sys-fs/udisks:2 sys-fs/udisks:0 ) )"
|
||||
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
>=dev-python/setuptools-0.6_rc5
|
||||
>=virtual/podofo-build-0.8.2"
|
||||
|
||||
S=${WORKDIR}/${PN}
|
||||
|
||||
src_prepare() {
|
||||
# Fix outdated version constant.
|
||||
#sed -e "s#\\(^numeric_version =\\).*#\\1 (${PV//./, })#" \
|
||||
# -i src/calibre/constants.py || \
|
||||
# die "sed failed to patch constants.py"
|
||||
|
||||
# Avoid sandbox violation in /usr/share/gnome/apps when linux.py
|
||||
# calls xdg-* (bug #258938).
|
||||
sed -e "s|'xdg-desktop-menu', 'install'|\\0, '--mode', 'user'|" \
|
||||
-e "s|check_call(\\['xdg-desktop-menu', 'forceupdate'\\])|#\\0|" \
|
||||
-e "s|\\(CurrentDir(tdir)\\), \\\\\$|\\1:|" \
|
||||
-e "s|PreserveMIMEDefaults():||" \
|
||||
-e "s|xdg-icon-resource install|\\0 --mode user|" \
|
||||
-e "s|cc(\\['xdg-desktop-menu', 'forceupdate'\\])|#\\0|" \
|
||||
-e "s|'xdg-mime', 'install'|\\0, '--mode', 'user'|" \
|
||||
-i src/calibre/linux.py || die "sed failed to patch linux.py"
|
||||
|
||||
# Disable unnecessary privilege dropping for bug #287067.
|
||||
sed -e "s:if os.geteuid() == 0:if False and os.geteuid() == 0:" \
|
||||
-i setup/install.py || die "sed failed to patch install.py"
|
||||
|
||||
sed -e "/^ self\\.check_call(qmc + \\[.*\\.pro'\\])$/a\
|
||||
\\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ self.check_call(['sed', \
|
||||
'-e', 's|^CFLAGS .*|\\\\\\\\0 ${CFLAGS}|', \
|
||||
'-e', 's|^CXXFLAGS .*|\\\\\\\\0 ${CXXFLAGS}|', \
|
||||
'-e', 's|^LFLAGS .*|\\\\\\\\0 ${LDFLAGS}|', \
|
||||
'-i', 'Makefile'])" \
|
||||
-i setup/extensions.py || die "sed failed to patch extensions.py"
|
||||
|
||||
# use system beautifulsoup, instead of bundled
|
||||
rm -f "${S}"/src/calibre/ebooks/BeautifulSoup.py || die "could not remove bundled beautifulsoup"
|
||||
find "${S}" -type f -name \*.py -exec \
|
||||
sed -e 's/calibre.ebooks.BeautifulSoup/BeautifulSoup/' -i {} + \
|
||||
|| die "could not sed bundled beautifulsoup out of the source tree"
|
||||
|
||||
# no_updates: do not annoy user with "new version is availible all the time
|
||||
# disable_plugins: walking sec-hole, wait for upstream to use GHNS interface
|
||||
# C locale: if LC_ALL=C do not raise an exception when locale cannot be canonicalized
|
||||
epatch \
|
||||
"${FILESDIR}/${PN}-1.34-no_updates_dialog.patch" \
|
||||
"${FILESDIR}/${PN}-disable_plugins.patch"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# Bypass kbuildsycoca and update-mime-database in order to
|
||||
# avoid sandbox violations if xdg-mime tries to call them.
|
||||
cat - > "${T}/kbuildsycoca" <<-EOF
|
||||
#!${BASH}
|
||||
exit 0
|
||||
EOF
|
||||
|
||||
cp "${T}"/{kbuildsycoca,update-mime-database}
|
||||
chmod +x "${T}"/{kbuildsycoca,update-mime-database}
|
||||
|
||||
# Unset DISPLAY in order to prevent xdg-mime from triggering a sandbox
|
||||
# violation with kbuildsycoca as in bug #287067, comment #13.
|
||||
export -n DISPLAY
|
||||
|
||||
# Bug #352625 - Some LANGUAGE values can trigger the following ValueError:
|
||||
# File "/usr/lib/python2.6/locale.py", line 486, in getdefaultlocale
|
||||
# return _parse_localename(localename)
|
||||
# File "/usr/lib/python2.6/locale.py", line 418, in _parse_localename
|
||||
# raise ValueError, 'unknown locale: %s' % localename
|
||||
#ValueError: unknown locale: 46
|
||||
export -n LANGUAGE
|
||||
|
||||
# Bug #295672 - Avoid sandbox violation in ~/.config by forcing
|
||||
# variables to point to our fake temporary $HOME.
|
||||
export HOME="${T}/fake_homedir"
|
||||
export XDG_CONFIG_HOME="${HOME}/.config"
|
||||
export XDG_DATA_HOME="${HOME}/.local/share"
|
||||
export CALIBRE_CONFIG_DIRECTORY="${XDG_CONFIG_HOME}/calibre"
|
||||
mkdir -p "${XDG_CONFIG_HOME}" "${CALIBRE_CONFIG_DIRECTORY}"
|
||||
|
||||
tc-export CC CXX
|
||||
# Bug #334243 - respect LDFLAGS when building extensions
|
||||
export OVERRIDE_CFLAGS="$CFLAGS" OVERRIDE_LDFLAGS="$LDFLAGS"
|
||||
local libdir=$(get_libdir)
|
||||
[[ -n $libdir ]] || die "get_libdir returned an empty string"
|
||||
|
||||
# Bug #472690 - Avoid sandbox violation for /dev/dri/card0.
|
||||
local x
|
||||
for x in /dev/dri/card[0-9] ; do
|
||||
[[ -e ${x} ]] && addpredict ${x}
|
||||
done
|
||||
|
||||
dodir "/usr/$(get_libdir)/python2.7/site-packages" # for init_calibre.py
|
||||
PATH=${T}:${PATH} PYTHONPATH=${S}/src${PYTHONPATH:+:}${PYTHONPATH} \
|
||||
"${EPREFIX}"/usr/bin/python2.7 setup.py install \
|
||||
--root="${D}" \
|
||||
--prefix="${EPREFIX}/usr" \
|
||||
--libdir="${EPREFIX}/usr/${libdir}" \
|
||||
--staging-root="${ED}usr" \
|
||||
--staging-libdir="${ED}usr/${libdir}" || die
|
||||
|
||||
grep -rlZ "${ED}" "${ED}" | xargs -0 sed -e "s:${D}:/:g" -i ||
|
||||
die "failed to fix harcoded \$D in paths"
|
||||
|
||||
# The menu entries end up here due to '--mode user' being added to
|
||||
# xdg-* options in src_prepare.
|
||||
dodir /usr/share/mime/packages
|
||||
chmod -fR a+rX,u+w,g-w,o-w "${HOME}"/.local
|
||||
mv "${HOME}"/.local/share/mime/packages/* "${ED}"usr/share/mime/packages/ ||
|
||||
die "failed to register mime types"
|
||||
dodir /usr/share/icons
|
||||
mv "${HOME}"/.local/share/icons/* "${ED}"usr/share/icons/ ||
|
||||
die "failed to install icon files"
|
||||
|
||||
domenu "${HOME}"/.local/share/applications/*.desktop ||
|
||||
die "failed to install .desktop menu files"
|
||||
|
||||
dobashcomp "${ED}"usr/etc/bash_completion.d/calibre
|
||||
rm -r "${ED}"usr/etc/bash_completion.d
|
||||
find "${ED}"usr/etc -type d -empty -delete
|
||||
|
||||
cd "${ED}"/usr/share/calibre/fonts/liberation || die
|
||||
local x
|
||||
for x in * ; do
|
||||
[[ -f ${EROOT}usr/share/fonts/liberation-fonts/${x} ]] || continue
|
||||
ln -sf "../../../fonts/liberation-fonts/${x}" "${x}" || die
|
||||
done
|
||||
|
||||
einfo "Converting python shebangs"
|
||||
while read -r -d $'\0' ; do
|
||||
local shebang=$(head -n1 "$REPLY")
|
||||
if [[ ${shebang} == "#!"*python* ]] ; then
|
||||
sed -i -e "1s:.*:#!${EPREFIX}/usr/bin/python2.7:" "$REPLY" || \
|
||||
die "sed failed"
|
||||
fi
|
||||
done < <(find "${ED}" -type f -print0)
|
||||
|
||||
einfo "Compiling python modules"
|
||||
"${EPREFIX}"/usr/bin/python2.7 -m compileall -q -f \
|
||||
-d "${EPREFIX}"/usr/lib/calibre "${ED}"usr/lib/calibre || die
|
||||
|
||||
newinitd "${FILESDIR}"/calibre-server.init calibre-server
|
||||
newconfd "${FILESDIR}"/calibre-server.conf calibre-server
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
fdo-mime_desktop_database_update
|
||||
fdo-mime_mime_database_update
|
||||
}
|
@ -1,223 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-text/calibre/calibre-1.48.ebuild,v 1.2 2014/10/16 20:49:55 zmedico Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils fdo-mime bash-completion-r1 multilib toolchain-funcs
|
||||
|
||||
DESCRIPTION="Ebook management application"
|
||||
HOMEPAGE="http://calibre-ebook.com/"
|
||||
[[ ${PV} == ${PV%.*}.${PV#*.} ]] && MY_PV=${PV}.0 || MY_PV=${PV}
|
||||
SRC_URI="http://sourceforge.net/projects/calibre/files/${MY_PV}/${PN}-${MY_PV}.tar.xz"
|
||||
|
||||
LICENSE="
|
||||
GPL-3+
|
||||
GPL-3
|
||||
GPL-2+
|
||||
GPL-2
|
||||
GPL-1+
|
||||
LGPL-3+
|
||||
LGPL-2.1+
|
||||
LGPL-2.1
|
||||
BSD
|
||||
MIT
|
||||
Old-MIT
|
||||
Apache-2.0
|
||||
public-domain
|
||||
|| ( Artistic GPL-1+ )
|
||||
CC-BY-3.0
|
||||
OFL-1.1
|
||||
PSF-2
|
||||
unRAR
|
||||
"
|
||||
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
SLOT="0"
|
||||
IUSE="+udisks"
|
||||
|
||||
COMMON_DEPEND="
|
||||
>=app-text/podofo-0.8.2:=
|
||||
>=app-text/poppler-0.20.2:=[qt4,xpdf-headers(+)]
|
||||
>=dev-lang/python-2.7.1:2.7[sqlite,ssl]
|
||||
>=dev-libs/chmlib-0.40:=
|
||||
>=dev-libs/icu-4.4:=
|
||||
>=dev-python/apsw-3.7.17[python_targets_python2_7(-)]
|
||||
>=dev-python/beautifulsoup-3.0.5:python-2[python_targets_python2_7(-)]
|
||||
dev-python/netifaces[python_targets_python2_7(-)]
|
||||
>=dev-python/dnspython-1.6.0[python_targets_python2_7(-)]
|
||||
>=dev-python/cssselect-0.7.1[python_targets_python2_7(-)]
|
||||
>=dev-python/cssutils-0.9.9[python_targets_python2_7(-)]
|
||||
>=dev-python/dbus-python-0.82.2[python_targets_python2_7(-)]
|
||||
>=dev-python/lxml-3.2.1[python_targets_python2_7(-)]
|
||||
>=dev-python/mechanize-0.1.11[python_targets_python2_7(-)]
|
||||
>=dev-python/python-dateutil-1.4.1[python_targets_python2_7(-)]
|
||||
>=dev-python/PyQt4-4.9.6[X,svg,webkit,python_targets_python2_7(-)]
|
||||
dev-qt/qtdbus:4=
|
||||
dev-qt/qtsvg:4=
|
||||
media-fonts/liberation-fonts
|
||||
>=media-gfx/imagemagick-6.5.9[jpeg,png]
|
||||
>=media-libs/freetype-2:=
|
||||
>=media-libs/libwmf-0.2.8
|
||||
>=media-libs/libmtp-1.1.5:=
|
||||
virtual/libusb:1=
|
||||
virtual/python-imaging[python_targets_python2_7(-)]
|
||||
>=x11-misc/xdg-utils-1.0.2-r2"
|
||||
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
udisks? ( || ( sys-fs/udisks:2 sys-fs/udisks:0 ) )"
|
||||
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
>=dev-python/setuptools-0.6_rc5
|
||||
>=virtual/podofo-build-0.8.2"
|
||||
|
||||
S=${WORKDIR}/${PN}
|
||||
|
||||
src_prepare() {
|
||||
# Fix outdated version constant.
|
||||
#sed -e "s#\\(^numeric_version =\\).*#\\1 (${PV//./, })#" \
|
||||
# -i src/calibre/constants.py || \
|
||||
# die "sed failed to patch constants.py"
|
||||
|
||||
# Avoid sandbox violation in /usr/share/gnome/apps when linux.py
|
||||
# calls xdg-* (bug #258938).
|
||||
sed -e "s|'xdg-desktop-menu', 'install'|\\0, '--mode', 'user'|" \
|
||||
-e "s|check_call(\\['xdg-desktop-menu', 'forceupdate'\\])|#\\0|" \
|
||||
-e "s|\\(CurrentDir(tdir)\\), \\\\\$|\\1:|" \
|
||||
-e "s|PreserveMIMEDefaults():||" \
|
||||
-e "s|xdg-icon-resource install|\\0 --mode user|" \
|
||||
-e "s|cc(\\['xdg-desktop-menu', 'forceupdate'\\])|#\\0|" \
|
||||
-e "s|'xdg-mime', 'install'|\\0, '--mode', 'user'|" \
|
||||
-i src/calibre/linux.py || die "sed failed to patch linux.py"
|
||||
|
||||
# Disable unnecessary privilege dropping for bug #287067.
|
||||
sed -e "s:if os.geteuid() == 0:if False and os.geteuid() == 0:" \
|
||||
-i setup/install.py || die "sed failed to patch install.py"
|
||||
|
||||
sed -e "/^ self\\.check_call(qmc + \\[.*\\.pro'\\])$/a\
|
||||
\\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ self.check_call(['sed', \
|
||||
'-e', 's|^CFLAGS .*|\\\\\\\\0 ${CFLAGS}|', \
|
||||
'-e', 's|^CXXFLAGS .*|\\\\\\\\0 ${CXXFLAGS}|', \
|
||||
'-e', 's|^LFLAGS .*|\\\\\\\\0 ${LDFLAGS}|', \
|
||||
'-i', 'Makefile'])" \
|
||||
-i setup/extensions.py || die "sed failed to patch extensions.py"
|
||||
|
||||
# use system beautifulsoup, instead of bundled
|
||||
rm -f "${S}"/src/calibre/ebooks/BeautifulSoup.py || die "could not remove bundled beautifulsoup"
|
||||
find "${S}" -type f -name \*.py -exec \
|
||||
sed -e 's/calibre.ebooks.BeautifulSoup/BeautifulSoup/' -i {} + \
|
||||
|| die "could not sed bundled beautifulsoup out of the source tree"
|
||||
|
||||
# no_updates: do not annoy user with "new version is availible all the time
|
||||
# disable_plugins: walking sec-hole, wait for upstream to use GHNS interface
|
||||
# C locale: if LC_ALL=C do not raise an exception when locale cannot be canonicalized
|
||||
epatch \
|
||||
"${FILESDIR}/${PN}-1.34-no_updates_dialog.patch" \
|
||||
"${FILESDIR}/${PN}-disable_plugins.patch"
|
||||
|
||||
# override install path for bash-completions
|
||||
local mybcd="${D}/$(get_bashcompdir)"
|
||||
sed -e "s#^def \(get_bash_completion_path.*\)\$#def \1\n return os.path.join('${mybcd}','calibre')\n\ndef old_\1#" \
|
||||
-i "${S}"/src/calibre/linux.py || die "Could not fix bash-completions install path"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# Bypass kbuildsycoca and update-mime-database in order to
|
||||
# avoid sandbox violations if xdg-mime tries to call them.
|
||||
cat - > "${T}/kbuildsycoca" <<-EOF
|
||||
#!${BASH}
|
||||
exit 0
|
||||
EOF
|
||||
|
||||
cp "${T}"/{kbuildsycoca,update-mime-database}
|
||||
chmod +x "${T}"/{kbuildsycoca,update-mime-database}
|
||||
|
||||
# Unset DISPLAY in order to prevent xdg-mime from triggering a sandbox
|
||||
# violation with kbuildsycoca as in bug #287067, comment #13.
|
||||
export -n DISPLAY
|
||||
|
||||
# Bug #352625 - Some LANGUAGE values can trigger the following ValueError:
|
||||
# File "/usr/lib/python2.6/locale.py", line 486, in getdefaultlocale
|
||||
# return _parse_localename(localename)
|
||||
# File "/usr/lib/python2.6/locale.py", line 418, in _parse_localename
|
||||
# raise ValueError, 'unknown locale: %s' % localename
|
||||
#ValueError: unknown locale: 46
|
||||
export -n LANGUAGE
|
||||
|
||||
# Bug #295672 - Avoid sandbox violation in ~/.config by forcing
|
||||
# variables to point to our fake temporary $HOME.
|
||||
export HOME="${T}/fake_homedir"
|
||||
export XDG_CONFIG_HOME="${HOME}/.config"
|
||||
export XDG_DATA_HOME="${HOME}/.local/share"
|
||||
export CALIBRE_CONFIG_DIRECTORY="${XDG_CONFIG_HOME}/calibre"
|
||||
mkdir -p "${XDG_CONFIG_HOME}" "${CALIBRE_CONFIG_DIRECTORY}"
|
||||
|
||||
tc-export CC CXX
|
||||
# Bug #334243 - respect LDFLAGS when building extensions
|
||||
export OVERRIDE_CFLAGS="$CFLAGS" OVERRIDE_LDFLAGS="$LDFLAGS"
|
||||
local libdir=$(get_libdir)
|
||||
[[ -n $libdir ]] || die "get_libdir returned an empty string"
|
||||
|
||||
# Bug #472690 - Avoid sandbox violation for /dev/dri/card0.
|
||||
local x
|
||||
for x in /dev/dri/card[0-9] ; do
|
||||
[[ -e ${x} ]] && addpredict ${x}
|
||||
done
|
||||
|
||||
dodir "/usr/$(get_libdir)/python2.7/site-packages" # for init_calibre.py
|
||||
PATH=${T}:${PATH} PYTHONPATH=${S}/src${PYTHONPATH:+:}${PYTHONPATH} \
|
||||
"${EPREFIX}"/usr/bin/python2.7 setup.py install \
|
||||
--root="${D}" \
|
||||
--prefix="${EPREFIX}/usr" \
|
||||
--libdir="${EPREFIX}/usr/${libdir}" \
|
||||
--staging-root="${ED}usr" \
|
||||
--staging-libdir="${ED}usr/${libdir}" || die
|
||||
|
||||
grep -rlZ "${ED}" "${ED}" | xargs -0 sed -e "s:${D}:/:g" -i ||
|
||||
die "failed to fix harcoded \$D in paths"
|
||||
|
||||
# The menu entries end up here due to '--mode user' being added to
|
||||
# xdg-* options in src_prepare.
|
||||
dodir /usr/share/mime/packages
|
||||
chmod -fR a+rX,u+w,g-w,o-w "${HOME}"/.local
|
||||
mv "${HOME}"/.local/share/mime/packages/* "${ED}"usr/share/mime/packages/ ||
|
||||
die "failed to register mime types"
|
||||
dodir /usr/share/icons
|
||||
mv "${HOME}"/.local/share/icons/* "${ED}"usr/share/icons/ ||
|
||||
die "failed to install icon files"
|
||||
|
||||
domenu "${HOME}"/.local/share/applications/*.desktop ||
|
||||
die "failed to install .desktop menu files"
|
||||
|
||||
# dobashcomp "${ED}"usr/share/bash-completion/completions/calibre
|
||||
# rm -r "${ED}"usr/share/bash-completion
|
||||
find "${ED}"usr/share -type d -empty -delete
|
||||
|
||||
cd "${ED}"/usr/share/calibre/fonts/liberation || die
|
||||
local x
|
||||
for x in * ; do
|
||||
[[ -f ${EROOT}usr/share/fonts/liberation-fonts/${x} ]] || continue
|
||||
ln -sf "../../../fonts/liberation-fonts/${x}" "${x}" || die
|
||||
done
|
||||
|
||||
einfo "Converting python shebangs"
|
||||
while read -r -d $'\0' ; do
|
||||
local shebang=$(head -n1 "$REPLY")
|
||||
if [[ ${shebang} == "#!"*python* ]] ; then
|
||||
sed -i -e "1s:.*:#!${EPREFIX}/usr/bin/python2.7:" "$REPLY" || \
|
||||
die "sed failed"
|
||||
fi
|
||||
done < <(find "${ED}" -type f -print0)
|
||||
|
||||
einfo "Compiling python modules"
|
||||
"${EPREFIX}"/usr/bin/python2.7 -m compileall -q -f \
|
||||
-d "${EPREFIX}"/usr/lib/calibre "${ED}"usr/lib/calibre || die
|
||||
|
||||
newinitd "${FILESDIR}"/calibre-server.init calibre-server
|
||||
newconfd "${FILESDIR}"/calibre-server.conf calibre-server
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
fdo-mime_desktop_database_update
|
||||
fdo-mime_mime_database_update
|
||||
}
|
@ -1,233 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-text/calibre/calibre-2.12.0.ebuild,v 1.1 2014/12/09 16:24:29 axs Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils fdo-mime bash-completion-r1 multilib toolchain-funcs
|
||||
|
||||
DESCRIPTION="Ebook management application"
|
||||
HOMEPAGE="http://calibre-ebook.com/"
|
||||
[[ ${PV} == ${PV%.*}.${PV#*.} ]] && MY_PV=${PV}.0 || MY_PV=${PV}
|
||||
SRC_URI="http://sourceforge.net/projects/calibre/files/${MY_PV}/${PN}-${MY_PV}.tar.xz"
|
||||
|
||||
LICENSE="
|
||||
GPL-3+
|
||||
GPL-3
|
||||
GPL-2+
|
||||
GPL-2
|
||||
GPL-1+
|
||||
LGPL-3+
|
||||
LGPL-2.1+
|
||||
LGPL-2.1
|
||||
BSD
|
||||
MIT
|
||||
Old-MIT
|
||||
Apache-2.0
|
||||
public-domain
|
||||
|| ( Artistic GPL-1+ )
|
||||
CC-BY-3.0
|
||||
OFL-1.1
|
||||
PSF-2
|
||||
unRAR
|
||||
"
|
||||
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
SLOT="0"
|
||||
IUSE="+udisks"
|
||||
|
||||
# Note, dropped dep on >=app-text/poppler-0.20.2:=[qt4,xpdf-headers(+)] as #1, its qt5 now, and
|
||||
# 2, because repoman blew up when it was there, and my installed copy doesnt seem to link to it.
|
||||
|
||||
COMMON_DEPEND="
|
||||
>=app-text/podofo-0.8.2:=
|
||||
>=dev-lang/python-2.7.1:2.7[sqlite,ssl]
|
||||
>=dev-libs/chmlib-0.40:=
|
||||
>=dev-libs/icu-4.4:=
|
||||
dev-libs/glib:2
|
||||
dev-qt/qtcore:5
|
||||
dev-qt/qtgui:5
|
||||
dev-qt/qtwidgets:5
|
||||
>=media-gfx/imagemagick-6.5.9[jpeg,png]
|
||||
media-libs/fontconfig
|
||||
>=media-libs/freetype-2:=
|
||||
>=media-libs/libmtp-1.1.5:=
|
||||
sys-libs/zlib
|
||||
udisks? ( virtual/libudev )
|
||||
x11-libs/libX11
|
||||
x11-libs/libXext
|
||||
x11-libs/libXrender
|
||||
>=dev-python/apsw-3.7.17[python_targets_python2_7(-)]
|
||||
>=dev-python/beautifulsoup-3.0.5:python-2[python_targets_python2_7(-)]
|
||||
dev-python/netifaces[python_targets_python2_7(-)]
|
||||
>=dev-python/dnspython-1.6.0[python_targets_python2_7(-)]
|
||||
>=dev-python/cssselect-0.7.1[python_targets_python2_7(-)]
|
||||
>=dev-python/cssutils-0.9.9[python_targets_python2_7(-)]
|
||||
>=dev-python/dbus-python-0.82.2[python_targets_python2_7(-)]
|
||||
>=dev-python/lxml-3.2.1[python_targets_python2_7(-)]
|
||||
>=dev-python/mechanize-0.1.11[python_targets_python2_7(-)]
|
||||
>=dev-python/python-dateutil-1.4.1[python_targets_python2_7(-)]
|
||||
>=dev-python/PyQt5-5.2.0[gui,svg,webkit,widgets,network,printsupport,python_targets_python2_7(-)]
|
||||
media-fonts/liberation-fonts
|
||||
>=media-libs/libwmf-0.2.8
|
||||
virtual/libusb:1=
|
||||
virtual/python-imaging[python_targets_python2_7(-)]
|
||||
>=x11-misc/xdg-utils-1.0.2-r2"
|
||||
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
udisks? ( || ( sys-fs/udisks:2 sys-fs/udisks:0 ) )"
|
||||
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
>=dev-python/setuptools-0.6_rc5
|
||||
>=virtual/podofo-build-0.8.2"
|
||||
|
||||
src_prepare() {
|
||||
# Fix outdated version constant.
|
||||
#sed -e "s#\\(^numeric_version =\\).*#\\1 (${PV//./, })#" \
|
||||
# -i src/calibre/constants.py || \
|
||||
# die "sed failed to patch constants.py"
|
||||
|
||||
# Avoid sandbox violation in /usr/share/gnome/apps when linux.py
|
||||
# calls xdg-* (bug #258938).
|
||||
sed -e "s|'xdg-desktop-menu', 'install'|\\0, '--mode', 'user'|" \
|
||||
-e "s|check_call(\\['xdg-desktop-menu', 'forceupdate'\\])|#\\0|" \
|
||||
-e "s|\\(CurrentDir(tdir)\\), \\\\\$|\\1:|" \
|
||||
-e "s|PreserveMIMEDefaults():||" \
|
||||
-e "s|xdg-icon-resource install|\\0 --mode user|" \
|
||||
-e "s|cc(\\['xdg-desktop-menu', 'forceupdate'\\])|#\\0|" \
|
||||
-e "s|'xdg-mime', 'install'|\\0, '--mode', 'user'|" \
|
||||
-i src/calibre/linux.py || die "sed failed to patch linux.py"
|
||||
|
||||
# Disable unnecessary privilege dropping for bug #287067.
|
||||
sed -e "s:if os.geteuid() == 0:if False and os.geteuid() == 0:" \
|
||||
-i setup/install.py || die "sed failed to patch install.py"
|
||||
|
||||
sed -e "/^ self\\.check_call(qmc + \\[.*\\.pro'\\])$/a\
|
||||
\\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ self.check_call(['sed', \
|
||||
'-e', 's|^CFLAGS .*|\\\\\\\\0 ${CFLAGS}|', \
|
||||
'-e', 's|^CXXFLAGS .*|\\\\\\\\0 ${CXXFLAGS}|', \
|
||||
'-e', 's|^LFLAGS .*|\\\\\\\\0 ${LDFLAGS}|', \
|
||||
'-i', 'Makefile'])" \
|
||||
-i setup/extensions.py || die "sed failed to patch extensions.py"
|
||||
|
||||
# use system beautifulsoup, instead of bundled
|
||||
rm -f "${S}"/src/calibre/ebooks/BeautifulSoup.py \
|
||||
|| die "could not remove bundled beautifulsoup"
|
||||
find "${S}" -type f -name \*.py -exec \
|
||||
sed -e 's/calibre.ebooks.BeautifulSoup/BeautifulSoup/' -i {} + \
|
||||
|| die "could not sed bundled beautifulsoup out of the source tree"
|
||||
|
||||
# avoid failure of xdg tools to recognize vendor prefix
|
||||
sed -e "s|xdg-icon-resource install|xdg-icon-resource install --novendor|" \
|
||||
-e "s|'xdg-mime', 'install'|'xdg-mime', 'install', '--novendor'|" \
|
||||
-e "s|'xdg-desktop-menu', 'install'|'xdg-desktop-menu', 'install', '--novendor'|" \
|
||||
-i "${S}"/src/calibre/linux.py || die 'sed failed'
|
||||
|
||||
# no_updates: do not annoy user with "new version is availible all the time
|
||||
# disable_plugins: walking sec-hole, wait for upstream to use GHNS interface
|
||||
epatch \
|
||||
"${FILESDIR}/${PN}-2.9.0-no_updates_dialog.patch" \
|
||||
"${FILESDIR}/${PN}-disable_plugins.patch"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# Bypass kbuildsycoca and update-mime-database in order to
|
||||
# avoid sandbox violations if xdg-mime tries to call them.
|
||||
cat - > "${T}/kbuildsycoca" <<-EOF
|
||||
#!${BASH}
|
||||
echo $0 : $@
|
||||
exit 0
|
||||
EOF
|
||||
|
||||
cp "${T}"/{kbuildsycoca,update-mime-database}
|
||||
chmod +x "${T}"/{kbuildsycoca,update-mime-database}
|
||||
|
||||
export QMAKE="/usr/lib/qt5/bin/qmake"
|
||||
|
||||
# Unset DISPLAY in order to prevent xdg-mime from triggering a sandbox
|
||||
# violation with kbuildsycoca as in bug #287067, comment #13.
|
||||
export -n DISPLAY
|
||||
|
||||
# Bug #352625 - Some LANGUAGE values can trigger the following ValueError:
|
||||
# File "/usr/lib/python2.6/locale.py", line 486, in getdefaultlocale
|
||||
# return _parse_localename(localename)
|
||||
# File "/usr/lib/python2.6/locale.py", line 418, in _parse_localename
|
||||
# raise ValueError, 'unknown locale: %s' % localename
|
||||
#ValueError: unknown locale: 46
|
||||
export -n LANGUAGE
|
||||
|
||||
# Bug #295672 - Avoid sandbox violation in ~/.config by forcing
|
||||
# variables to point to our fake temporary $HOME.
|
||||
export HOME="${T}/fake_homedir"
|
||||
export XDG_CONFIG_HOME="${HOME}/.config"
|
||||
export XDG_DATA_HOME="${HOME}/.local/share"
|
||||
export CALIBRE_CONFIG_DIRECTORY="${XDG_CONFIG_HOME}/calibre"
|
||||
mkdir -p "${XDG_DATA_HOME}" "${CALIBRE_CONFIG_DIRECTORY}"
|
||||
|
||||
tc-export CC CXX
|
||||
# Bug #334243 - respect LDFLAGS when building extensions
|
||||
export OVERRIDE_CFLAGS="$CFLAGS" OVERRIDE_LDFLAGS="$LDFLAGS"
|
||||
local libdir=$(get_libdir)
|
||||
[[ -n $libdir ]] || die "get_libdir returned an empty string"
|
||||
|
||||
# Bug #472690 - Avoid sandbox violation for /dev/dri/card0.
|
||||
local x
|
||||
for x in /dev/dri/card[0-9] ; do
|
||||
[[ -e ${x} ]] && addpredict ${x}
|
||||
done
|
||||
|
||||
dodir "/usr/$(get_libdir)/python2.7/site-packages" # for init_calibre.py
|
||||
PATH=${T}:${PATH} PYTHONPATH=${S}/src${PYTHONPATH:+:}${PYTHONPATH} \
|
||||
"${EPREFIX}"/usr/bin/python2.7 setup.py install \
|
||||
--root="${D}" \
|
||||
--prefix="${EPREFIX}/usr" \
|
||||
--libdir="${EPREFIX}/usr/${libdir}" \
|
||||
--staging-root="${ED}usr" \
|
||||
--staging-libdir="${ED}usr/${libdir}" || die
|
||||
|
||||
grep -rlZ "${ED}" "${ED}" | xargs -0 sed -e "s:${D}:/:g" -i ||
|
||||
die "failed to fix harcoded \$D in paths"
|
||||
|
||||
# The menu entries end up here due to '--mode user' being added to
|
||||
# xdg-* options in src_prepare.
|
||||
dodir /usr/share/mime/packages
|
||||
chmod -fR a+rX,u+w,g-w,o-w "${HOME}"/.local
|
||||
mv "${HOME}"/.local/share/mime/packages/* "${ED}"usr/share/mime/packages/ ||
|
||||
die "failed to register mime types"
|
||||
dodir /usr/share/icons
|
||||
mv "${HOME}"/.local/share/icons/* "${ED}"usr/share/icons/ ||
|
||||
die "failed to install icon files"
|
||||
|
||||
domenu "${HOME}"/.local/share/applications/*.desktop ||
|
||||
die "failed to install .desktop menu files"
|
||||
|
||||
find "${ED}"usr/share -type d -empty -delete
|
||||
|
||||
cd "${ED}"/usr/share/calibre/fonts/liberation || die
|
||||
local x
|
||||
for x in * ; do
|
||||
[[ -f ${EROOT}usr/share/fonts/liberation-fonts/${x} ]] || continue
|
||||
ln -sf "../../../fonts/liberation-fonts/${x}" "${x}" || die
|
||||
done
|
||||
|
||||
einfo "Converting python shebangs"
|
||||
while read -r -d $'\0' ; do
|
||||
local shebang=$(head -n1 "$REPLY")
|
||||
if [[ ${shebang} == "#!"*python* ]] ; then
|
||||
sed -i -e "1s:.*:#!${EPREFIX}/usr/bin/python2.7:" "$REPLY" || \
|
||||
die "sed failed"
|
||||
fi
|
||||
done < <(find "${ED}" -type f -print0)
|
||||
|
||||
einfo "Compiling python modules"
|
||||
"${EPREFIX}"/usr/bin/python2.7 -m compileall -q -f \
|
||||
-d "${EPREFIX}"/usr/lib/calibre "${ED}"usr/lib/calibre || die
|
||||
|
||||
newinitd "${FILESDIR}"/calibre-server.init calibre-server
|
||||
newconfd "${FILESDIR}"/calibre-server.conf calibre-server
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
fdo-mime_desktop_database_update
|
||||
fdo-mime_mime_database_update
|
||||
}
|
@ -1,227 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-text/calibre/calibre-2.7.0.ebuild,v 1.1 2014/10/24 21:26:21 axs Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils fdo-mime bash-completion-r1 multilib toolchain-funcs
|
||||
|
||||
DESCRIPTION="Ebook management application"
|
||||
HOMEPAGE="http://calibre-ebook.com/"
|
||||
[[ ${PV} == ${PV%.*}.${PV#*.} ]] && MY_PV=${PV}.0 || MY_PV=${PV}
|
||||
SRC_URI="http://sourceforge.net/projects/calibre/files/${MY_PV}/${PN}-${MY_PV}.tar.xz"
|
||||
|
||||
LICENSE="
|
||||
GPL-3+
|
||||
GPL-3
|
||||
GPL-2+
|
||||
GPL-2
|
||||
GPL-1+
|
||||
LGPL-3+
|
||||
LGPL-2.1+
|
||||
LGPL-2.1
|
||||
BSD
|
||||
MIT
|
||||
Old-MIT
|
||||
Apache-2.0
|
||||
public-domain
|
||||
|| ( Artistic GPL-1+ )
|
||||
CC-BY-3.0
|
||||
OFL-1.1
|
||||
PSF-2
|
||||
unRAR
|
||||
"
|
||||
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
SLOT="0"
|
||||
IUSE="+udisks"
|
||||
|
||||
# Note, dropped dep on >=app-text/poppler-0.20.2:=[qt4,xpdf-headers(+)] as #1, its qt5 now, and
|
||||
# 2, because repoman blew up when it was there, and my installed copy doesnt seem to link to it.
|
||||
|
||||
COMMON_DEPEND="
|
||||
>=app-text/podofo-0.8.2:=
|
||||
>=dev-lang/python-2.7.1:2.7[sqlite,ssl]
|
||||
>=dev-libs/chmlib-0.40:=
|
||||
>=dev-libs/icu-4.4:=
|
||||
dev-libs/glib:2
|
||||
dev-qt/qtcore:5
|
||||
dev-qt/qtgui:5
|
||||
dev-qt/qtwidgets:5
|
||||
>=media-gfx/imagemagick-6.5.9[jpeg,png]
|
||||
media-libs/fontconfig
|
||||
>=media-libs/freetype-2:=
|
||||
>=media-libs/libmtp-1.1.5:=
|
||||
sys-libs/zlib
|
||||
udisks? ( virtual/libudev )
|
||||
x11-libs/libX11
|
||||
x11-libs/libXext
|
||||
x11-libs/libXrender
|
||||
>=dev-python/apsw-3.7.17[python_targets_python2_7(-)]
|
||||
>=dev-python/beautifulsoup-3.0.5:python-2[python_targets_python2_7(-)]
|
||||
dev-python/netifaces[python_targets_python2_7(-)]
|
||||
>=dev-python/dnspython-1.6.0[python_targets_python2_7(-)]
|
||||
>=dev-python/cssselect-0.7.1[python_targets_python2_7(-)]
|
||||
>=dev-python/cssutils-0.9.9[python_targets_python2_7(-)]
|
||||
>=dev-python/dbus-python-0.82.2[python_targets_python2_7(-)]
|
||||
>=dev-python/lxml-3.2.1[python_targets_python2_7(-)]
|
||||
>=dev-python/mechanize-0.1.11[python_targets_python2_7(-)]
|
||||
>=dev-python/python-dateutil-1.4.1[python_targets_python2_7(-)]
|
||||
>=dev-python/PyQt5-5.2.0[gui,svg,webkit,widgets,network,printsupport,python_targets_python2_7(-)]
|
||||
media-fonts/liberation-fonts
|
||||
>=media-libs/libwmf-0.2.8
|
||||
virtual/libusb:1=
|
||||
virtual/python-imaging[python_targets_python2_7(-)]
|
||||
>=x11-misc/xdg-utils-1.0.2-r2"
|
||||
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
udisks? ( || ( sys-fs/udisks:2 sys-fs/udisks:0 ) )"
|
||||
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
>=dev-python/setuptools-0.6_rc5
|
||||
>=virtual/podofo-build-0.8.2"
|
||||
|
||||
src_prepare() {
|
||||
# Fix outdated version constant.
|
||||
#sed -e "s#\\(^numeric_version =\\).*#\\1 (${PV//./, })#" \
|
||||
# -i src/calibre/constants.py || \
|
||||
# die "sed failed to patch constants.py"
|
||||
|
||||
# Avoid sandbox violation in /usr/share/gnome/apps when linux.py
|
||||
# calls xdg-* (bug #258938).
|
||||
sed -e "s|'xdg-desktop-menu', 'install'|\\0, '--mode', 'user'|" \
|
||||
-e "s|check_call(\\['xdg-desktop-menu', 'forceupdate'\\])|#\\0|" \
|
||||
-e "s|\\(CurrentDir(tdir)\\), \\\\\$|\\1:|" \
|
||||
-e "s|PreserveMIMEDefaults():||" \
|
||||
-e "s|xdg-icon-resource install|\\0 --mode user|" \
|
||||
-e "s|cc(\\['xdg-desktop-menu', 'forceupdate'\\])|#\\0|" \
|
||||
-e "s|'xdg-mime', 'install'|\\0, '--mode', 'user'|" \
|
||||
-i src/calibre/linux.py || die "sed failed to patch linux.py"
|
||||
|
||||
# Disable unnecessary privilege dropping for bug #287067.
|
||||
sed -e "s:if os.geteuid() == 0:if False and os.geteuid() == 0:" \
|
||||
-i setup/install.py || die "sed failed to patch install.py"
|
||||
|
||||
sed -e "/^ self\\.check_call(qmc + \\[.*\\.pro'\\])$/a\
|
||||
\\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ self.check_call(['sed', \
|
||||
'-e', 's|^CFLAGS .*|\\\\\\\\0 ${CFLAGS}|', \
|
||||
'-e', 's|^CXXFLAGS .*|\\\\\\\\0 ${CXXFLAGS}|', \
|
||||
'-e', 's|^LFLAGS .*|\\\\\\\\0 ${LDFLAGS}|', \
|
||||
'-i', 'Makefile'])" \
|
||||
-i setup/extensions.py || die "sed failed to patch extensions.py"
|
||||
|
||||
# use system beautifulsoup, instead of bundled
|
||||
rm -f "${S}"/src/calibre/ebooks/BeautifulSoup.py || die "could not remove bundled beautifulsoup"
|
||||
find "${S}" -type f -name \*.py -exec \
|
||||
sed -e 's/calibre.ebooks.BeautifulSoup/BeautifulSoup/' -i {} + \
|
||||
|| die "could not sed bundled beautifulsoup out of the source tree"
|
||||
|
||||
# no_updates: do not annoy user with "new version is availible all the time
|
||||
# disable_plugins: walking sec-hole, wait for upstream to use GHNS interface
|
||||
# C locale: if LC_ALL=C do not raise an exception when locale cannot be canonicalized
|
||||
epatch \
|
||||
"${FILESDIR}/${PN}-1.34-no_updates_dialog.patch" \
|
||||
"${FILESDIR}/${PN}-disable_plugins.patch"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# Bypass kbuildsycoca and update-mime-database in order to
|
||||
# avoid sandbox violations if xdg-mime tries to call them.
|
||||
cat - > "${T}/kbuildsycoca" <<-EOF
|
||||
#!${BASH}
|
||||
echo $0 : $@
|
||||
exit 0
|
||||
EOF
|
||||
|
||||
cp "${T}"/{kbuildsycoca,update-mime-database}
|
||||
chmod +x "${T}"/{kbuildsycoca,update-mime-database}
|
||||
|
||||
export QMAKE="/usr/lib/qt5/bin/qmake"
|
||||
|
||||
# Unset DISPLAY in order to prevent xdg-mime from triggering a sandbox
|
||||
# violation with kbuildsycoca as in bug #287067, comment #13.
|
||||
export -n DISPLAY
|
||||
|
||||
# Bug #352625 - Some LANGUAGE values can trigger the following ValueError:
|
||||
# File "/usr/lib/python2.6/locale.py", line 486, in getdefaultlocale
|
||||
# return _parse_localename(localename)
|
||||
# File "/usr/lib/python2.6/locale.py", line 418, in _parse_localename
|
||||
# raise ValueError, 'unknown locale: %s' % localename
|
||||
#ValueError: unknown locale: 46
|
||||
export -n LANGUAGE
|
||||
|
||||
# Bug #295672 - Avoid sandbox violation in ~/.config by forcing
|
||||
# variables to point to our fake temporary $HOME.
|
||||
export HOME="${T}/fake_homedir"
|
||||
export XDG_CONFIG_HOME="${HOME}/.config"
|
||||
export XDG_DATA_HOME="${HOME}/.local/share"
|
||||
export CALIBRE_CONFIG_DIRECTORY="${XDG_CONFIG_HOME}/calibre"
|
||||
mkdir -p "${XDG_DATA_HOME}" "${CALIBRE_CONFIG_DIRECTORY}"
|
||||
|
||||
tc-export CC CXX
|
||||
# Bug #334243 - respect LDFLAGS when building extensions
|
||||
export OVERRIDE_CFLAGS="$CFLAGS" OVERRIDE_LDFLAGS="$LDFLAGS"
|
||||
local libdir=$(get_libdir)
|
||||
[[ -n $libdir ]] || die "get_libdir returned an empty string"
|
||||
|
||||
# Bug #472690 - Avoid sandbox violation for /dev/dri/card0.
|
||||
local x
|
||||
for x in /dev/dri/card[0-9] ; do
|
||||
[[ -e ${x} ]] && addpredict ${x}
|
||||
done
|
||||
|
||||
dodir "/usr/$(get_libdir)/python2.7/site-packages" # for init_calibre.py
|
||||
PATH=${T}:${PATH} PYTHONPATH=${S}/src${PYTHONPATH:+:}${PYTHONPATH} \
|
||||
"${EPREFIX}"/usr/bin/python2.7 setup.py install \
|
||||
--root="${D}" \
|
||||
--prefix="${EPREFIX}/usr" \
|
||||
--libdir="${EPREFIX}/usr/${libdir}" \
|
||||
--staging-root="${ED}usr" \
|
||||
--staging-libdir="${ED}usr/${libdir}" || die
|
||||
|
||||
grep -rlZ "${ED}" "${ED}" | xargs -0 sed -e "s:${D}:/:g" -i ||
|
||||
die "failed to fix harcoded \$D in paths"
|
||||
|
||||
# The menu entries end up here due to '--mode user' being added to
|
||||
# xdg-* options in src_prepare.
|
||||
dodir /usr/share/mime/packages
|
||||
chmod -fR a+rX,u+w,g-w,o-w "${HOME}"/.local
|
||||
mv "${HOME}"/.local/share/mime/packages/* "${ED}"usr/share/mime/packages/ ||
|
||||
die "failed to register mime types"
|
||||
dodir /usr/share/icons
|
||||
mv "${HOME}"/.local/share/icons/* "${ED}"usr/share/icons/ ||
|
||||
die "failed to install icon files"
|
||||
|
||||
domenu "${HOME}"/.local/share/applications/*.desktop ||
|
||||
die "failed to install .desktop menu files"
|
||||
|
||||
find "${ED}"usr/share -type d -empty -delete
|
||||
|
||||
cd "${ED}"/usr/share/calibre/fonts/liberation || die
|
||||
local x
|
||||
for x in * ; do
|
||||
[[ -f ${EROOT}usr/share/fonts/liberation-fonts/${x} ]] || continue
|
||||
ln -sf "../../../fonts/liberation-fonts/${x}" "${x}" || die
|
||||
done
|
||||
|
||||
einfo "Converting python shebangs"
|
||||
while read -r -d $'\0' ; do
|
||||
local shebang=$(head -n1 "$REPLY")
|
||||
if [[ ${shebang} == "#!"*python* ]] ; then
|
||||
sed -i -e "1s:.*:#!${EPREFIX}/usr/bin/python2.7:" "$REPLY" || \
|
||||
die "sed failed"
|
||||
fi
|
||||
done < <(find "${ED}" -type f -print0)
|
||||
|
||||
einfo "Compiling python modules"
|
||||
"${EPREFIX}"/usr/bin/python2.7 -m compileall -q -f \
|
||||
-d "${EPREFIX}"/usr/lib/calibre "${ED}"usr/lib/calibre || die
|
||||
|
||||
newinitd "${FILESDIR}"/calibre-server.init calibre-server
|
||||
newconfd "${FILESDIR}"/calibre-server.conf calibre-server
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
fdo-mime_desktop_database_update
|
||||
fdo-mime_mime_database_update
|
||||
}
|
@ -1,233 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-text/calibre/calibre-2.9.0.ebuild,v 1.2 2014/11/09 13:18:44 yngwin Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils fdo-mime bash-completion-r1 multilib toolchain-funcs
|
||||
|
||||
DESCRIPTION="Ebook management application"
|
||||
HOMEPAGE="http://calibre-ebook.com/"
|
||||
[[ ${PV} == ${PV%.*}.${PV#*.} ]] && MY_PV=${PV}.0 || MY_PV=${PV}
|
||||
SRC_URI="http://sourceforge.net/projects/calibre/files/${MY_PV}/${PN}-${MY_PV}.tar.xz"
|
||||
|
||||
LICENSE="
|
||||
GPL-3+
|
||||
GPL-3
|
||||
GPL-2+
|
||||
GPL-2
|
||||
GPL-1+
|
||||
LGPL-3+
|
||||
LGPL-2.1+
|
||||
LGPL-2.1
|
||||
BSD
|
||||
MIT
|
||||
Old-MIT
|
||||
Apache-2.0
|
||||
public-domain
|
||||
|| ( Artistic GPL-1+ )
|
||||
CC-BY-3.0
|
||||
OFL-1.1
|
||||
PSF-2
|
||||
unRAR
|
||||
"
|
||||
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
SLOT="0"
|
||||
IUSE="+udisks"
|
||||
|
||||
# Note, dropped dep on >=app-text/poppler-0.20.2:=[qt4,xpdf-headers(+)] as #1, its qt5 now, and
|
||||
# 2, because repoman blew up when it was there, and my installed copy doesnt seem to link to it.
|
||||
|
||||
COMMON_DEPEND="
|
||||
>=app-text/podofo-0.8.2:=
|
||||
>=dev-lang/python-2.7.1:2.7[sqlite,ssl]
|
||||
>=dev-libs/chmlib-0.40:=
|
||||
>=dev-libs/icu-4.4:=
|
||||
dev-libs/glib:2
|
||||
dev-qt/qtcore:5
|
||||
dev-qt/qtgui:5
|
||||
dev-qt/qtwidgets:5
|
||||
>=media-gfx/imagemagick-6.5.9[jpeg,png]
|
||||
media-libs/fontconfig
|
||||
>=media-libs/freetype-2:=
|
||||
>=media-libs/libmtp-1.1.5:=
|
||||
sys-libs/zlib
|
||||
udisks? ( virtual/libudev )
|
||||
x11-libs/libX11
|
||||
x11-libs/libXext
|
||||
x11-libs/libXrender
|
||||
>=dev-python/apsw-3.7.17[python_targets_python2_7(-)]
|
||||
>=dev-python/beautifulsoup-3.0.5:python-2[python_targets_python2_7(-)]
|
||||
dev-python/netifaces[python_targets_python2_7(-)]
|
||||
>=dev-python/dnspython-1.6.0[python_targets_python2_7(-)]
|
||||
>=dev-python/cssselect-0.7.1[python_targets_python2_7(-)]
|
||||
>=dev-python/cssutils-0.9.9[python_targets_python2_7(-)]
|
||||
>=dev-python/dbus-python-0.82.2[python_targets_python2_7(-)]
|
||||
>=dev-python/lxml-3.2.1[python_targets_python2_7(-)]
|
||||
>=dev-python/mechanize-0.1.11[python_targets_python2_7(-)]
|
||||
>=dev-python/python-dateutil-1.4.1[python_targets_python2_7(-)]
|
||||
>=dev-python/PyQt5-5.2.0[gui,svg,webkit,widgets,network,printsupport,python_targets_python2_7(-)]
|
||||
media-fonts/liberation-fonts
|
||||
>=media-libs/libwmf-0.2.8
|
||||
virtual/libusb:1=
|
||||
virtual/python-imaging[python_targets_python2_7(-)]
|
||||
>=x11-misc/xdg-utils-1.0.2-r2"
|
||||
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
udisks? ( || ( sys-fs/udisks:2 sys-fs/udisks:0 ) )"
|
||||
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
>=dev-python/setuptools-0.6_rc5
|
||||
>=virtual/podofo-build-0.8.2"
|
||||
|
||||
src_prepare() {
|
||||
# Fix outdated version constant.
|
||||
#sed -e "s#\\(^numeric_version =\\).*#\\1 (${PV//./, })#" \
|
||||
# -i src/calibre/constants.py || \
|
||||
# die "sed failed to patch constants.py"
|
||||
|
||||
# Avoid sandbox violation in /usr/share/gnome/apps when linux.py
|
||||
# calls xdg-* (bug #258938).
|
||||
sed -e "s|'xdg-desktop-menu', 'install'|\\0, '--mode', 'user'|" \
|
||||
-e "s|check_call(\\['xdg-desktop-menu', 'forceupdate'\\])|#\\0|" \
|
||||
-e "s|\\(CurrentDir(tdir)\\), \\\\\$|\\1:|" \
|
||||
-e "s|PreserveMIMEDefaults():||" \
|
||||
-e "s|xdg-icon-resource install|\\0 --mode user|" \
|
||||
-e "s|cc(\\['xdg-desktop-menu', 'forceupdate'\\])|#\\0|" \
|
||||
-e "s|'xdg-mime', 'install'|\\0, '--mode', 'user'|" \
|
||||
-i src/calibre/linux.py || die "sed failed to patch linux.py"
|
||||
|
||||
# Disable unnecessary privilege dropping for bug #287067.
|
||||
sed -e "s:if os.geteuid() == 0:if False and os.geteuid() == 0:" \
|
||||
-i setup/install.py || die "sed failed to patch install.py"
|
||||
|
||||
sed -e "/^ self\\.check_call(qmc + \\[.*\\.pro'\\])$/a\
|
||||
\\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ self.check_call(['sed', \
|
||||
'-e', 's|^CFLAGS .*|\\\\\\\\0 ${CFLAGS}|', \
|
||||
'-e', 's|^CXXFLAGS .*|\\\\\\\\0 ${CXXFLAGS}|', \
|
||||
'-e', 's|^LFLAGS .*|\\\\\\\\0 ${LDFLAGS}|', \
|
||||
'-i', 'Makefile'])" \
|
||||
-i setup/extensions.py || die "sed failed to patch extensions.py"
|
||||
|
||||
# use system beautifulsoup, instead of bundled
|
||||
rm -f "${S}"/src/calibre/ebooks/BeautifulSoup.py \
|
||||
|| die "could not remove bundled beautifulsoup"
|
||||
find "${S}" -type f -name \*.py -exec \
|
||||
sed -e 's/calibre.ebooks.BeautifulSoup/BeautifulSoup/' -i {} + \
|
||||
|| die "could not sed bundled beautifulsoup out of the source tree"
|
||||
|
||||
# avoid failure of xdg tools to recognize vendor prefix
|
||||
sed -e "s|xdg-icon-resource install|xdg-icon-resource install --novendor|" \
|
||||
-e "s|'xdg-mime', 'install'|'xdg-mime', 'install', '--novendor'|" \
|
||||
-e "s|'xdg-desktop-menu', 'install'|'xdg-desktop-menu', 'install', '--novendor'|" \
|
||||
-i "${S}"/src/calibre/linux.py || die 'sed failed'
|
||||
|
||||
# no_updates: do not annoy user with "new version is availible all the time
|
||||
# disable_plugins: walking sec-hole, wait for upstream to use GHNS interface
|
||||
epatch \
|
||||
"${FILESDIR}/${PN}-2.9.0-no_updates_dialog.patch" \
|
||||
"${FILESDIR}/${PN}-disable_plugins.patch"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# Bypass kbuildsycoca and update-mime-database in order to
|
||||
# avoid sandbox violations if xdg-mime tries to call them.
|
||||
cat - > "${T}/kbuildsycoca" <<-EOF
|
||||
#!${BASH}
|
||||
echo $0 : $@
|
||||
exit 0
|
||||
EOF
|
||||
|
||||
cp "${T}"/{kbuildsycoca,update-mime-database}
|
||||
chmod +x "${T}"/{kbuildsycoca,update-mime-database}
|
||||
|
||||
export QMAKE="/usr/lib/qt5/bin/qmake"
|
||||
|
||||
# Unset DISPLAY in order to prevent xdg-mime from triggering a sandbox
|
||||
# violation with kbuildsycoca as in bug #287067, comment #13.
|
||||
export -n DISPLAY
|
||||
|
||||
# Bug #352625 - Some LANGUAGE values can trigger the following ValueError:
|
||||
# File "/usr/lib/python2.6/locale.py", line 486, in getdefaultlocale
|
||||
# return _parse_localename(localename)
|
||||
# File "/usr/lib/python2.6/locale.py", line 418, in _parse_localename
|
||||
# raise ValueError, 'unknown locale: %s' % localename
|
||||
#ValueError: unknown locale: 46
|
||||
export -n LANGUAGE
|
||||
|
||||
# Bug #295672 - Avoid sandbox violation in ~/.config by forcing
|
||||
# variables to point to our fake temporary $HOME.
|
||||
export HOME="${T}/fake_homedir"
|
||||
export XDG_CONFIG_HOME="${HOME}/.config"
|
||||
export XDG_DATA_HOME="${HOME}/.local/share"
|
||||
export CALIBRE_CONFIG_DIRECTORY="${XDG_CONFIG_HOME}/calibre"
|
||||
mkdir -p "${XDG_DATA_HOME}" "${CALIBRE_CONFIG_DIRECTORY}"
|
||||
|
||||
tc-export CC CXX
|
||||
# Bug #334243 - respect LDFLAGS when building extensions
|
||||
export OVERRIDE_CFLAGS="$CFLAGS" OVERRIDE_LDFLAGS="$LDFLAGS"
|
||||
local libdir=$(get_libdir)
|
||||
[[ -n $libdir ]] || die "get_libdir returned an empty string"
|
||||
|
||||
# Bug #472690 - Avoid sandbox violation for /dev/dri/card0.
|
||||
local x
|
||||
for x in /dev/dri/card[0-9] ; do
|
||||
[[ -e ${x} ]] && addpredict ${x}
|
||||
done
|
||||
|
||||
dodir "/usr/$(get_libdir)/python2.7/site-packages" # for init_calibre.py
|
||||
PATH=${T}:${PATH} PYTHONPATH=${S}/src${PYTHONPATH:+:}${PYTHONPATH} \
|
||||
"${EPREFIX}"/usr/bin/python2.7 setup.py install \
|
||||
--root="${D}" \
|
||||
--prefix="${EPREFIX}/usr" \
|
||||
--libdir="${EPREFIX}/usr/${libdir}" \
|
||||
--staging-root="${ED}usr" \
|
||||
--staging-libdir="${ED}usr/${libdir}" || die
|
||||
|
||||
grep -rlZ "${ED}" "${ED}" | xargs -0 sed -e "s:${D}:/:g" -i ||
|
||||
die "failed to fix harcoded \$D in paths"
|
||||
|
||||
# The menu entries end up here due to '--mode user' being added to
|
||||
# xdg-* options in src_prepare.
|
||||
dodir /usr/share/mime/packages
|
||||
chmod -fR a+rX,u+w,g-w,o-w "${HOME}"/.local
|
||||
mv "${HOME}"/.local/share/mime/packages/* "${ED}"usr/share/mime/packages/ ||
|
||||
die "failed to register mime types"
|
||||
dodir /usr/share/icons
|
||||
mv "${HOME}"/.local/share/icons/* "${ED}"usr/share/icons/ ||
|
||||
die "failed to install icon files"
|
||||
|
||||
domenu "${HOME}"/.local/share/applications/*.desktop ||
|
||||
die "failed to install .desktop menu files"
|
||||
|
||||
find "${ED}"usr/share -type d -empty -delete
|
||||
|
||||
cd "${ED}"/usr/share/calibre/fonts/liberation || die
|
||||
local x
|
||||
for x in * ; do
|
||||
[[ -f ${EROOT}usr/share/fonts/liberation-fonts/${x} ]] || continue
|
||||
ln -sf "../../../fonts/liberation-fonts/${x}" "${x}" || die
|
||||
done
|
||||
|
||||
einfo "Converting python shebangs"
|
||||
while read -r -d $'\0' ; do
|
||||
local shebang=$(head -n1 "$REPLY")
|
||||
if [[ ${shebang} == "#!"*python* ]] ; then
|
||||
sed -i -e "1s:.*:#!${EPREFIX}/usr/bin/python2.7:" "$REPLY" || \
|
||||
die "sed failed"
|
||||
fi
|
||||
done < <(find "${ED}" -type f -print0)
|
||||
|
||||
einfo "Compiling python modules"
|
||||
"${EPREFIX}"/usr/bin/python2.7 -m compileall -q -f \
|
||||
-d "${EPREFIX}"/usr/lib/calibre "${ED}"usr/lib/calibre || die
|
||||
|
||||
newinitd "${FILESDIR}"/calibre-server.init calibre-server
|
||||
newconfd "${FILESDIR}"/calibre-server.conf calibre-server
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
fdo-mime_desktop_database_update
|
||||
fdo-mime_mime_database_update
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST u-boot-2013.07.tar.bz2 10067674 SHA256 2bbd440c1b29928d230604eac372fda5152d3ae23f52b1910c77fc5bf531250b SHA512 5c0725c9c5c7c9101d7ef8eb659aafb513ca5742fbafec55e0b64cd68b3e37520de55f71aebba59bf979b8daef2b0c71645b5ab343b7057d601b3cd6ffc6e763 WHIRLPOOL 41f1a78b6f7af206bb2a6c04be23ad1aceaa4a105ede4794b4a9d6777e3e92ae2014906be30c749cae51ea9d865f7e565185d9baaa0e953b01a053b62621ad66
|
||||
DIST u-boot-2014.01.tar.bz2 10180625 SHA256 cdaf8c81583abfa2e73da46cfcf87b0cbd9741d9aa766f3b905376e3652d543d SHA512 c6e4f6f9a2dae1a50b7dd94dad13ef5d0ce440c3f0401de3f0ecf907c8fca0ff183077ec3b2c4da42b0fa9775450b03571725c76dfd2419a4ee7b982c261ccb1 WHIRLPOOL 9964abde477ce54dfe0a0972920e19c6d60209e8a19819c98b955a9a8b23cc57ac8e687d9ced65411eb6ff1ac40121edac154e754b3b5a2f037cf3a7724de374
|
||||
DIST u-boot-2015.01.tar.bz2 9982195 SHA256 383051a656ebe11757b17d38a3326387e4a1b0949ca8a9e8ee506bf71dac9fde SHA512 6697c6da5f463bdfa75b8025a2dd302e9cda58ce36bc3252590f11976807aeccc1ca76be93cbc83d3367a7557878516bb57130ffb76197ffd513640c48e18938 WHIRLPOOL 7ed552f0f32d061c1723c42f0230611d6552068765ea3130fe070d1a906da2defafa14a67078ef7feda4ed29857f51a5b47b3595aa7a8eb07bf26778a3517aff
|
||||
|
@ -0,0 +1,40 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-embedded/u-boot-tools/u-boot-tools-2015.01.ebuild,v 1.1 2015/02/11 17:50:59 hwoarang Exp $
|
||||
|
||||
EAPI="5"
|
||||
|
||||
inherit eutils toolchain-funcs
|
||||
|
||||
MY_P="u-boot-${PV/_/-}"
|
||||
DESCRIPTION="utilities for working with Das U-Boot"
|
||||
HOMEPAGE="http://www.denx.de/wiki/U-Boot/WebHome"
|
||||
SRC_URI="ftp://ftp.denx.de/pub/u-boot/${MY_P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
IUSE=""
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
src_compile() {
|
||||
emake defconfig
|
||||
emake \
|
||||
HOSTSTRIP=: \
|
||||
HOSTCC="$(tc-getCC)" \
|
||||
HOSTCFLAGS="${CFLAGS} ${CPPFLAGS}"' $(HOSTCPPFLAGS)' \
|
||||
HOSTLDFLAGS="${LDFLAGS}" \
|
||||
CONFIG_ENV_OVERWRITE=y \
|
||||
tools-all
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cd tools
|
||||
dobin bmp_logo gen_eth_addr img2srec mkimage
|
||||
dobin easylogo/easylogo
|
||||
dobin env/fw_printenv
|
||||
dosym fw_printenv /usr/bin/fw_setenv
|
||||
insinto /etc
|
||||
doins env/fw_env.config
|
||||
}
|
@ -0,0 +1,37 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-lang/icc/icc-15.0.2.164.ebuild,v 1.1 2015/02/12 08:22:40 jlec Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
INTEL_DPN=parallel_studio_xe
|
||||
INTEL_DID=5207
|
||||
INTEL_DPV=2015_update2
|
||||
INTEL_SUBDIR=composerxe
|
||||
INTEL_SINGLE_ARCH=false
|
||||
|
||||
inherit intel-sdp
|
||||
|
||||
DESCRIPTION="Intel C/C++ Compiler"
|
||||
HOMEPAGE="http://software.intel.com/en-us/articles/intel-composer-xe/"
|
||||
|
||||
IUSE="eclipse linguas_ja"
|
||||
KEYWORDS="-* ~amd64 ~x86 ~amd64-linux ~x86-linux"
|
||||
|
||||
DEPEND="
|
||||
!dev-lang/ifc[linguas_ja]
|
||||
eclipse? ( dev-util/eclipse-sdk )"
|
||||
RDEPEND="${DEPEND}
|
||||
~dev-libs/intel-common-${PV}[compiler,multilib=]"
|
||||
|
||||
INTEL_BIN_RPMS="compilerproc compilerproc-devel"
|
||||
INTEL_DAT_RPMS="compilerproc-common compilerproc-vars"
|
||||
|
||||
CHECKREQS_DISK_BUILD=325M
|
||||
|
||||
src_install() {
|
||||
if ! use linguas_ja; then
|
||||
find "${S}" -type d -name ja_JP -exec rm -rf '{}' + || die
|
||||
fi
|
||||
intel-sdp_src_install
|
||||
}
|
@ -0,0 +1,38 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-lang/ifc/ifc-15.0.2.164.ebuild,v 1.2 2015/02/12 10:43:08 jlec Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
INTEL_DPN=parallel_studio_xe
|
||||
INTEL_DID=5207
|
||||
INTEL_DPV=2015_update2
|
||||
INTEL_SUBDIR=composerxe
|
||||
INTEL_SINGLE_ARCH=false
|
||||
|
||||
inherit intel-sdp
|
||||
|
||||
DESCRIPTION="Intel FORTRAN Compiler"
|
||||
HOMEPAGE="http://software.intel.com/en-us/articles/intel-composer-xe/"
|
||||
|
||||
IUSE="linguas_ja"
|
||||
KEYWORDS="-* ~amd64 ~x86 ~amd64-linux ~x86-linux"
|
||||
|
||||
DEPEND="!dev-lang/ifc[linguas_jp]"
|
||||
RDEPEND="${DEPEND}
|
||||
~dev-libs/intel-common-${PV}[compiler,multilib=]"
|
||||
|
||||
INTEL_BIN_RPMS="compilerprof compilerprof-devel"
|
||||
INTEL_DAT_RPMS="compilerprof-common compilerprof-vars"
|
||||
|
||||
CHECKREQS_DISK_BUILD=375M
|
||||
|
||||
src_install() {
|
||||
if ! use linguas_ja; then
|
||||
find "${S}" -type d -name ja_JP -exec rm -rf '{}' + || die
|
||||
fi
|
||||
|
||||
rm opt/intel/composerxe-2015_update2.2.164/documentation/en_US/third-party-programs.txt || die
|
||||
|
||||
intel-sdp_src_install
|
||||
}
|
@ -0,0 +1,59 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/intel-common/intel-common-15.0.2.164.ebuild,v 1.1 2015/02/12 07:43:47 jlec Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
INTEL_DPN=parallel_studio_xe
|
||||
INTEL_DID=5207
|
||||
INTEL_DPV=2015_update2
|
||||
INTEL_SUBDIR=composerxe
|
||||
INTEL_SINGLE_ARCH=false
|
||||
|
||||
inherit intel-sdp
|
||||
|
||||
DESCRIPTION="Common libraries and utilities needed for Intel compilers and libraries"
|
||||
HOMEPAGE="http://software.intel.com/en-us/articles/intel-compilers/"
|
||||
|
||||
IUSE="+compiler"
|
||||
KEYWORDS="-* ~amd64 ~x86 ~amd64-linux ~x86-linux"
|
||||
|
||||
CHECKREQS_DISK_BUILD=375M
|
||||
|
||||
pkg_setup() {
|
||||
einfo ${INTEL_SDP_EDIR}
|
||||
INTEL_BIN_RPMS="openmp openmp-devel"
|
||||
INTEL_DAT_RPMS="compilerpro-common compilerpro-common-pset"
|
||||
if use compiler; then
|
||||
INTEL_BIN_RPMS+=" compilerpro-devel sourcechecker-devel"
|
||||
INTEL_DAT_RPMS+=" compilerpro-vars sourcechecker-common ccompxe compxe fcompxe"
|
||||
fi
|
||||
intel-sdp_pkg_setup
|
||||
}
|
||||
|
||||
src_install() {
|
||||
intel-sdp_src_install
|
||||
local path rootpath ldpath arch fenv=35intelsdp
|
||||
cat > ${fenv} <<-EOF
|
||||
NLSPATH=${INTEL_SDP_EDIR}/lib/locale/en_US/%N
|
||||
INTEL_LICENSE_FILE="${INTEL_SDP_EDIR}"/licenses:"${EPREFIX}/opt/intel/license"
|
||||
EOF
|
||||
for arch in ${INTEL_ARCH}; do
|
||||
path=${path}:${INTEL_SDP_EDIR}/bin/${arch}:${INTEL_SDP_EDIR}/mpirt/bin/${arch}
|
||||
rootpath=${rootpath}:${INTEL_SDP_EDIR}/bin/${arch}:${INTEL_SDP_EDIR}/mpirt/bin/${arch}
|
||||
ldpath=${ldpath}:${INTEL_SDP_EDIR}/compiler/lib/${arch}:${INTEL_SDP_EDIR}/mpirt/lib/${arch}
|
||||
done
|
||||
cat >> ${fenv} <<-EOF
|
||||
PATH=${path#:}
|
||||
ROOTPATH=${rootpath#:}
|
||||
LDPATH=${ldpath#:}
|
||||
EOF
|
||||
|
||||
doenvd ${fenv}
|
||||
|
||||
cat >> "${T}"/40-${PN} <<- EOF
|
||||
SEARCH_DIRS_MASK="${INTEL_SDP_EDIR}"
|
||||
EOF
|
||||
insinto /etc/revdep-rebuild/
|
||||
doins "${T}"/40-${PN}
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST flask-restless-0.14.1.tar.gz 513541 SHA256 5724dc9f7674575b6947b263f9fcf0fbd6d6c26e5b8742ec75a7658a4aafd74d SHA512 cd6d4f4f9c4dd9e8d63dcff483def21241f7566f1ab41e331daaabf565a713957a89869e629b96ef4f2cb48ea8332e180f38af3bd672c524e02b3b3b6375dd0d WHIRLPOOL 67d2cd6a9fef4bdc3a8c7ae3f6fbaf822d57208271f73ba9d221de13a122d7f5cabadc76661bf8eced8fc194c42008fef3df1fe006db958a3a11815035b4711b
|
||||
DIST flask-restless-0.14.2.tar.gz 513721 SHA256 a687ea0faa3e01987ab43eed08406755c52f673b8fcc854657d1296076e6ef60 SHA512 397a553a694302f9557f49f7ae2df12d92808d45c247ea5f57b858754f6b2225a0df2393d4cbc49c153bfdd808778a3461f80a2ed20a4109d32afa2357a96336 WHIRLPOOL 949eedd82a9e42a24208442a4d974953df25f8e9308f0455d4d46f5eef91c7a40d9558a95391977db08a307675c0d74df0aca7c9235224c1ba84713243fe9c92
|
||||
DIST flask-restless-0.15.0.tar.gz 515022 SHA256 78c07508018f6c417c3f383553d249ae08acf66864b786c1cbb5464cda2b5502 SHA512 156223295a2b1fcb270ed132a9023caa77632559155342381277f427fa069457977f8122bb21425281f1039aaef48c411a5f2677be403a0965abad4af199d775 WHIRLPOOL baaba2a60c424eb75faca35a0840d15b5215489c8ae6c39e513183253d66657f03e6e9544ff57edb0e1b7591f436bb46d7909a8f53179ad866c0fb63daa73111
|
||||
|
@ -0,0 +1,60 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/flask-restless/flask-restless-0.15.0.ebuild,v 1.1 2015/02/12 04:26:34 patrick Exp $
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=( python{2_7,3_3,3_4} pypy )
|
||||
|
||||
PYTHON_REQ_USE="sqlite"
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Flask extension for easy ReSTful API generation"
|
||||
HOMEPAGE="http://packages.python.org/Flask-Restless/"
|
||||
SRC_URI="https://github.com/jfinkels/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="|| ( AGPL-3 BSD )"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
IUSE="doc examples test"
|
||||
|
||||
RDEPEND=">=dev-python/flask-0.7[${PYTHON_USEDEP}]
|
||||
dev-python/flask-sqlalchemy[${PYTHON_USEDEP}]
|
||||
dev-python/sqlalchemy[${PYTHON_USEDEP}]
|
||||
dev-python/python-dateutil:0[${PYTHON_USEDEP}]
|
||||
dev-python/mimerender[${PYTHON_USEDEP}]"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
test? ( dev-python/nose[${PYTHON_USEDEP}] )
|
||||
doc? ( dev-python/sphinx[${PYTHON_USEDEP}]
|
||||
>=dev-python/sphinxcontrib-httpdomain-1.1.7[${PYTHON_USEDEP}]
|
||||
>=dev-python/sphinxcontrib-issuetracker-0.11[${PYTHON_USEDEP}]
|
||||
dev-python/flask-themes[${PYTHON_USEDEP}] )"
|
||||
|
||||
PATCHES=( "${FILESDIR}"/mapping.patch )
|
||||
|
||||
python_compile_all() {
|
||||
if use doc; then
|
||||
if ! "${PYTHON}" -c "import flask_restless"; then
|
||||
eerror "flask-restless is not installed. Building of the docs"
|
||||
eerror "requires flask-restless to be installed."
|
||||
eerror "emerge with USE=-doc followed bu USE=doc"
|
||||
die
|
||||
fi
|
||||
# Changes connect to read issues @ github
|
||||
rm -f docs/changelog.rst
|
||||
einfo "Generating html docs for ${PN}"
|
||||
PYTHONPATH=${PYTHONPATH}"${S}"/docs emake -C docs html \
|
||||
|| die "Generating html docs for ${PN} failed"
|
||||
fi
|
||||
}
|
||||
|
||||
python_test() {
|
||||
nosetests -w tests || die "Tests failed under ${EPYTHON}"
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use doc && local HTML_DOCS=( docs/_build/html/. )
|
||||
use examples && local EXAMPLES=( examples/. )
|
||||
distutils-r1_python_install_all
|
||||
}
|
@ -0,0 +1,48 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/numba/numba-0.17.0.ebuild,v 1.1 2015/02/12 05:50:40 patrick Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python{2_7,3_3,3_4} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="NumPy aware dynamic Python compiler using LLVM"
|
||||
HOMEPAGE="http://numba.pydata.org/"
|
||||
SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
IUSE="doc examples test"
|
||||
|
||||
RDEPEND="
|
||||
dev-python/llvmlite[${PYTHON_USEDEP}]
|
||||
>=dev-python/numpy-1.6[${PYTHON_USEDEP}]
|
||||
$(python_gen_cond_dep 'dev-python/enum34[${PYTHON_USEDEP}]' python{2_7,3_3})
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
test? ( $(python_gen_cond_dep 'dev-python/funcsigs[${PYTHON_USEDEP}]' python2_7) )"
|
||||
|
||||
python_compile() {
|
||||
if ! python_is_python3; then
|
||||
local CFLAGS="${CFLAGS} -fno-strict-aliasing"
|
||||
export CFLAGS
|
||||
fi
|
||||
distutils-r1_python_compile
|
||||
}
|
||||
|
||||
python_test() {
|
||||
cd "${BUILD_DIR}"/lib* || die
|
||||
${PYTHON} -c "import numba; numba.test()" || die
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
# doc needs obsolete sphnxjp package
|
||||
use doc && dodoc docs/Numba.pdf
|
||||
use examples && local EXAMPLES=( examples/. )
|
||||
|
||||
distutils-r1_python_install_all
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST peewee-2.4.5.tar.gz 363910 SHA256 460693ed37a3945b02ebdfe7249d1270d629fe29b8803b97972302a43577385e SHA512 bc7b6c05f45fcc13bc5f65db50e8201b7cbd0151d1af861218ff4c75da37d6a8b964d8364f8d4222ce32390ade922fd69d40b7edc1025eed4b906991023f3e6c WHIRLPOOL e7ff4bed144a801d634fe2276948b28b8791921bbeb3175792933c644509ec20ce75c06947a7d5588cb4506897694e0712ada7eb1ed98a8c5d65c8922df682b1
|
||||
DIST peewee-2.4.6.tar.gz 374550 SHA256 a891154959c3c1cc3b68942c5b5a70b674598e4916ae6b73f4672f85da5b0404 SHA512 72b1e3f99b787be5cdd6d996669ad6ee0a8e47151e6ad08ebde171e48559e5a77218147dff62bba1d5e324c6cfa6014fced2c585ef0bba867bff1d4815673992 WHIRLPOOL 9792b9e76c096aa78ec75aa3f75a126791f18812a3fe80de2c212640ddf7fc1ce3fd1a53397527d67120ddb573f036cc94b7f7d6e46f21044f8ab4a710a1fd7c
|
||||
DIST peewee-2.4.7.tar.gz 384928 SHA256 ab89cee2ea8a205761aa4e360dbbeb8cf0b755485c2515ef7ef2331c3f33cd68 SHA512 8c1d7e8ed727afade4de08e0d8d9417a99508c7498dd9064cc225083b7694faf4bf838e896819681a6994d7f0dad484068715e89e45cd690a43ad0f0cebf3550 WHIRLPOOL dbb89f7c64fa06a6af5e07b8f881cdd806695e5459839c3897ef6e203fa3a3112acdb57c369b31999eb2caee74b6db26843c6067e41adc6cab24277e46207e4a
|
||||
|
@ -0,0 +1,42 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/peewee/peewee-2.4.7.ebuild,v 1.1 2015/02/12 07:56:59 patrick Exp $
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=( python{2_7,3_3,3_4} )
|
||||
PYTHON_REQ_USE="sqlite(+)"
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Small python ORM"
|
||||
HOMEPAGE="https://github.com/coleifer/peewee/"
|
||||
SRC_URI="https://github.com/coleifer/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="doc examples test"
|
||||
|
||||
RDEPEND=""
|
||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
test? (
|
||||
dev-python/apsw[${PYTHON_USEDEP}]
|
||||
dev-python/psycopg[${PYTHON_USEDEP}]
|
||||
dev-python/django[${PYTHON_USEDEP}]
|
||||
)"
|
||||
# Req'd to ensure a unique tmp.db for each python impl running the testsuite.
|
||||
DISTUTILS_IN_SOURCE_BUILD=1
|
||||
|
||||
python_compile_all() {
|
||||
use doc && emake -C docs html
|
||||
}
|
||||
|
||||
python_test() {
|
||||
"${PYTHON}" ./runtests.py || die "tests failed under ${EPYTHON}"
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use doc && local HTML_DOCS=( docs/_build/html/. )
|
||||
use examples && local EXAMPLES=( examples/. )
|
||||
distutils-r1_python_install_all
|
||||
}
|
@ -1,3 +1,4 @@
|
||||
DIST pep8-1.4.5.tar.gz 63021 SHA256 dd908e7df835ebb1b82ba0675e1b7e173ea9c55d7ae62808ecad2e6db2a6ee0e SHA512 c4d8e5b116762480e1aad2ddad1cd02d2d74779adcef8153739c7ca1e56d33bd81b42c984c525797548d915245f24d3cea636d6b89ade8e9e428f31b0a6fe8a6 WHIRLPOOL c597328ce58d226311162c7126c949f92e9142f0fa9a979cdd0ede29f71b839587ef4c5cef57ac8fdd608753f52a6c91220b90807ca9b3b56cc5b5772c688b9a
|
||||
DIST pep8-1.5.6.tar.gz 66944 SHA256 1a8be992f8daac6144af0f3972f40159f46d81cb36dde4adeea01576e4bf041a SHA512 9de60df0f56eeb28be835b3f11d060150e08c19403552b769abe0794a1aca65e3a17fd8b45f35b34b11593f527c2f4521ab72823aa1475963b1281c044c71ec1 WHIRLPOOL 97f90d9b4ae69d87cf5eb014998f74d8fc97640a31a457a2b39db495eeb9bc0634d5a56a6bf7636d44dbef70179a3c0c0098e7963a5d63e7d3cfccd0b250675b
|
||||
DIST pep8-1.5.7.tar.gz 67302 SHA256 15b42131b25f376165d195fe4e17b0a28311182aaf9330d5eb575bbeda5a6989 SHA512 ae5cc6cc47d71e90059fec0c89f5e8e7b71b08d185c95b0c8cf0aa9acaee4841d0cfc617fb1ca6d7af7f4721480a1992b6178dc845d80dfe87fe3792d515a3eb WHIRLPOOL 09621e17fec73de00ab4840365898084651bab4cbcf982a1393eba5e0bb2d04c0374c5dd69bf6915b6542b4ce6ac13a614395811387badf6384f266d0b61fec3
|
||||
DIST pep8-1.6.1.tar.gz 73103 SHA256 573677cb85ff089244b0f99af955f76c2e37456632610b6deda6167139ce155a SHA512 7a9d83cfe7b61b2ef598c74a465b81971ad1d0be3a708410e431d8475fc507204979857c10dbf4332701aac0d28244f19dc9c400ca85161acdd61d8084158ef8 WHIRLPOOL 0a032be9cdea4f45c86255dddbb06e1629e148e8b15e6a83d8abc7ed06f52d6c184f2953367dca5b94978e2351b3873c6cf3bc02c811aa9f8ce50964b31306c5
|
||||
|
@ -0,0 +1,35 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/pep8/pep8-1.6.1.ebuild,v 1.1 2015/02/12 05:57:39 patrick Exp $
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=( python{2_7,3_3,3_4} pypy pypy3 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Python style guide checker"
|
||||
HOMEPAGE="http://github.com/jcrocholl/pep8 http://pypi.python.org/pypi/pep8"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE="doc"
|
||||
|
||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
python_compile_all() {
|
||||
use doc && emake -C docs html
|
||||
}
|
||||
|
||||
python_test() {
|
||||
PYTHONPATH="${S}" "${PYTHON}" pep8.py -v --testsuite=testsuite || die
|
||||
PYTHONPATH="${S}" "${PYTHON}" pep8.py --doctest -v || die
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use doc && local HTML_DOCS=( docs/_build/html/. )
|
||||
distutils-r1_python_install_all
|
||||
}
|
@ -0,0 +1,73 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/psycopg/psycopg-2.6.ebuild,v 1.1 2015/02/12 06:08:34 patrick Exp $
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=( python{2_7,3_2,3_3,3_4} )
|
||||
|
||||
inherit distutils-r1 flag-o-matic
|
||||
|
||||
MY_PN="${PN}2"
|
||||
MY_P="${MY_PN}-${PV}"
|
||||
|
||||
DESCRIPTION="PostgreSQL database adapter for Python"
|
||||
HOMEPAGE="http://initd.org/psycopg/ http://pypi.python.org/pypi/psycopg2"
|
||||
SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-3+"
|
||||
SLOT="2"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x86-solaris"
|
||||
IUSE="debug doc examples"
|
||||
|
||||
RDEPEND=">=dev-db/postgresql-8.1"
|
||||
DEPEND="${RDEPEND}
|
||||
doc? ( dev-python/sphinx[${PYTHON_USEDEP}]
|
||||
>=dev-python/python-docs-2.7.6-r1:2.7 )"
|
||||
|
||||
RESTRICT="test"
|
||||
# Remove py3.2 entry from intersphinx setting
|
||||
PATCHES=( "${FILESDIR}/"${PN}-2.4.2-setup.py.patch )
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
python_compile() {
|
||||
local CFLAGS=${CFLAGS} CXXFLAGS=${CXXFLAGS}
|
||||
|
||||
! python_is_python3 && append-flags -fno-strict-aliasing
|
||||
|
||||
distutils-r1_python_compile
|
||||
}
|
||||
|
||||
python_prepare_all() {
|
||||
if use debug; then
|
||||
sed -i 's/^\(define=\)/\1PSYCOPG_DEBUG,/' setup.cfg || die
|
||||
fi
|
||||
|
||||
# Source local copy of objects.inv
|
||||
if use doc; then
|
||||
local PYTHON_DOC_ATOM=$(best_version --host-root dev-python/python-docs:2.7)
|
||||
local PYTHON_DOC_VERSION="${PYTHON_DOC_ATOM#dev-python/python-docs-}"
|
||||
local PYTHON_DOC="/usr/share/doc/python-docs-${PYTHON_DOC_VERSION}/html"
|
||||
local PYTHON_DOC_INVENTORY="${PYTHON_DOC}/objects.inv"
|
||||
sed -e "s|'http://docs.python.org/', None|'${PYTHON_DOC}', '${PYTHON_DOC_INVENTORY}'|" \
|
||||
-e "/^ 'py3':/d" -i doc/src/conf.py || die
|
||||
einfo "conf.py patched"
|
||||
fi
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_compile_all() {
|
||||
use doc && emake -C doc -j1 html text
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
if use doc; then
|
||||
dodoc doc/psycopg2.txt
|
||||
dohtml -r doc/html/.
|
||||
fi
|
||||
|
||||
use examples && local EXAMPLES=( examples/. )
|
||||
|
||||
distutils-r1_python_install_all
|
||||
}
|
@ -0,0 +1,48 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/pyzmq/pyzmq-2.2.0.1-r1.ebuild,v 1.7 2015/02/12 02:32:56 patrick Exp $
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="PyZMQ is a lightweight and super-fast messaging library built on top of the ZeroMQ library"
|
||||
HOMEPAGE="http://www.zeromq.org/bindings:python http://pypi.python.org/pypi/pyzmq"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE="examples test"
|
||||
|
||||
PY2_USEDEP=$(python_gen_usedep 'python2*')
|
||||
|
||||
RDEPEND=">=net-libs/zeromq-2.1.9"
|
||||
DEPEND="${RDEPEND}
|
||||
test? ( dev-python/nose[${PY2_USEDEP}]
|
||||
dev-python/gevent[${PY2_USEDEP}]
|
||||
www-servers/tornado[${PY2_USEDEP}] )"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-2.2.0.1-python3.patch"
|
||||
)
|
||||
|
||||
# Configure checks write to cwd.
|
||||
# https://github.com/zeromq/pyzmq/issues/318
|
||||
DISTUTILS_IN_SOURCE_BUILD=1
|
||||
|
||||
python_test() {
|
||||
if [[ ${EPYTHON} == python3* ]]; then
|
||||
einfo "Skipping tests for ${EPYTHON}, not supported."
|
||||
else
|
||||
nosetests -svw build/lib* || die "Tests fail with ${EPYTHON}"
|
||||
fi
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
if use examples; then
|
||||
dodoc -r examples
|
||||
docompress -x /usr/share/doc/${PF}/examples
|
||||
fi
|
||||
}
|
@ -1,3 +1,4 @@
|
||||
DIST Werkzeug-0.10.1.tar.gz 1134481 SHA256 9cf783990b1a99173e707a5768610800aa87775e9d86e211d17180d5b6c245ab SHA512 f7175d03f564385c7556e6f9f4195c0c2643510490f28a3a33fd4e2c4f3f2fcc408c3dd6b56644a6fa5cd4e22639cb3f51ce71081c36704f90ce3cbfa0083cdc WHIRLPOOL 19bdaa872f1032bc43d069d167da15f5094054caa02ac3b3971600a27a9bdb0f83bcede720360cb4da36db10fe0c1ed48d4e8a2051cdb2e63df07a5d37d8b9ac
|
||||
DIST Werkzeug-0.10.tar.gz 1133931 SHA256 9a97a6fcf87390172748da9e5250710b352dff18e979db925d276112cdcfa7ac SHA512 fc9872892ce02b3501a0edc0ea25a1edd793af61e0c268de80e465fb6ecee6f95c323a624fb2f71903c28a4b743012e3a48d23652172e7c4bc7305c797d4fee5 WHIRLPOOL 77a6a71a9c8d8ea55970f8a30569bf2964ebdb762c97fd8d92516a08aac1a53efcb115ad0ee10ee952be93b4732067680844a463d33ff69207454f2046594b3f
|
||||
DIST Werkzeug-0.9.4.tar.gz 1126353 SHA256 c1baf7a3e8be70f34d931ee173283f406877bd3d17f372bbe82318a5b3c510cc SHA512 3d43ecac7c4a710bb22a0b829925d0913ac36b98e63ee1000221b724f9f06d92f98716194f26fb762b2ba99cbb82b9d23ff4d23dbf9ac154063452c56f6290dd WHIRLPOOL 649336fdfdf6da0ebf2ea906faf9f40a1d13dabf31ecfe189fd7646cf32ba1f73aabbccfb6574502465347d70d2612f75ea20eb1c9b19602317c64279112990b
|
||||
DIST Werkzeug-0.9.6.tar.gz 1128428 SHA256 7f11e7e2e73eb22677cac1b11113eb6106f66cedef13d140e83cf6563c90b79c SHA512 0b36df25d5f69a0353f7a9321b9197ace2926b6d8e983a91ef372c270ff51462f7d86184447a5f74b4ad05ffdc6411098f77b45a4f1c906dd525d7edf220399c WHIRLPOOL db153036e9dc36c70239001a6b451adeaafa3819f4903bb8c297bb4313c9a064926a2aad6e4457810b53796b3e492228a9ee1ec165fe5dce0522ab0d2c7407f9
|
||||
|
@ -0,0 +1,31 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/werkzeug/werkzeug-0.10.1.ebuild,v 1.1 2015/02/12 03:50:06 patrick Exp $
|
||||
|
||||
EAPI="5"
|
||||
PYTHON_COMPAT=( python{2_7,3_3,3_4} pypy )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
MY_PN="Werkzeug"
|
||||
MY_P="${MY_PN}-${PV}"
|
||||
|
||||
DESCRIPTION="Collection of various utilities for WSGI applications"
|
||||
HOMEPAGE="http://werkzeug.pocoo.org/ http://pypi.python.org/pypi/Werkzeug"
|
||||
SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
|
||||
IUSE="test"
|
||||
|
||||
RDEPEND="dev-python/simplejson[${PYTHON_USEDEP}]"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
test? ( dev-python/requests[${PYTHON_USEDEP}] )"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
python_test() {
|
||||
esetup.py test
|
||||
}
|
@ -0,0 +1 @@
|
||||
DIST gpgme-2.0.8.gem 2221056 SHA256 b54f47c3c932f4331e1c8d4ac971fe203ac030be38788b23fd5d05aa631dd0ab SHA512 9ff616d2c11af05aaa69fa132040c6268f01d05a8444297814326e0cd57dcf21fcc5489cc4e1fd3d40ad7652fa06abbb37caf0b69664e38489ed6939b96dfe7f WHIRLPOOL e085fbf9d806fbdcbaf91f6acf008de6b6ebdb6764ec07acb7e948f19535d92f72a61f76520e7ed83d11f55e9a87f798149c11061e58ebd388c244394e93570b
|
@ -0,0 +1,30 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/gpgme/gpgme-2.0.8.ebuild,v 1.2 2015/02/12 05:22:58 patrick Exp $
|
||||
|
||||
EAPI=5
|
||||
USE_RUBY="ruby19 ruby20 ruby21"
|
||||
|
||||
inherit ruby-ng ruby-fakegem flag-o-matic
|
||||
|
||||
DESCRIPTION="Ruby language binding for GnuPG Made Easy"
|
||||
HOMEPAGE="https://github.com/ueno/ruby-gpgme"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND='>=app-crypt/gpgme-1.1.2'
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
each_ruby_configure() {
|
||||
append-flags -fPIC
|
||||
export RUBY_GPGME_USE_SYSTEM_LIBRARIES=1
|
||||
${RUBY} -C ext "${S}/ext/gpgme/extconf.rb" || die "extconf.rb failed"
|
||||
}
|
||||
|
||||
each_ruby_compile() {
|
||||
emake -C ext archflag="${LDFLAGS}" || die "emake failed"
|
||||
cp -f "${S}/ext/gpgme_n.so" "${S}/lib" || die
|
||||
}
|
@ -1,5 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<herd>games</herd>
|
||||
<herd>sysadmin</herd>
|
||||
<herd>ruby</herd>
|
||||
</pkgmetadata>
|
@ -0,0 +1 @@
|
||||
DIST hiera-eyaml-gpg-0.4.gem 8192 SHA256 9d0b3b64a50ed5e5fe07c83a42731cfb3bdf28607112b3893d7d9e88769c9cac SHA512 51670ed7f13c41643efe3ebfbdf0126e2d048bfe16f5cc1b4d9462f7b0070535417191ababe0bd669fe8f82afe0d0a56dff9dd5299c89b2c6fee3901482b230d WHIRLPOOL 11c0d8cc489325dbdb8f57fcbaad6ced49c1e22d2c55b6190d6b9ab5058128d7e46b29f9c095d4083e3470916fa519aff53c6fb30b61a5672c0a4f8fb6ec54b1
|
@ -0,0 +1,22 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/hiera-eyaml-gpg/hiera-eyaml-gpg-0.4.ebuild,v 1.1 2015/02/12 01:23:41 robbat2 Exp $
|
||||
|
||||
EAPI=5
|
||||
USE_RUBY="ruby19 ruby20 ruby21"
|
||||
|
||||
RUBY_FAKEGEM_TASK_DOC=""
|
||||
RUBY_FAKEGEM_EXTRADOC="README.md"
|
||||
|
||||
inherit ruby-fakegem
|
||||
|
||||
DESCRIPTION="A GPG backend for hiera-eyaml"
|
||||
HOMEPAGE="https://github.com/sihil/hiera-eyaml-gpg"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
ruby_add_rdepend '>=dev-ruby/hiera-eyaml-1.3.8'
|
||||
ruby_add_rdepend '>=dev-ruby/gpgme-2.0.0'
|
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<herd>sysadmin</herd>
|
||||
<herd>ruby</herd>
|
||||
</pkgmetadata>
|
@ -0,0 +1 @@
|
||||
DIST hiera-eyaml-2.0.6.gem 27136 SHA256 f8d570650647a176546563967ca2f257cb0835a698f79863e36a1d48939c567c SHA512 50d8d67b9d56d7f56b1e0f029638416489f8f990fa6154003269543d34a9bcc5dbcb58f79be16eecc21e875f1badded8492dfb2b80cd1cb0931837b62129db28 WHIRLPOOL dfda7e6726bf75d8794faa2f95a3f74086d2e690a9d1a02b287794ce24dad36d7dd5547f5c55ce9757260b9a60dcd7cc4f77d7146d4b8b9bf224a6bec5418b77
|
@ -0,0 +1,22 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/hiera-eyaml/hiera-eyaml-2.0.6.ebuild,v 1.2 2015/02/12 05:24:33 patrick Exp $
|
||||
|
||||
EAPI=5
|
||||
USE_RUBY="ruby19 ruby20 ruby21"
|
||||
|
||||
RUBY_FAKEGEM_TASK_DOC=""
|
||||
RUBY_FAKEGEM_EXTRADOC="README.md CHANGES.md PLUGINS.md"
|
||||
|
||||
inherit ruby-fakegem
|
||||
|
||||
DESCRIPTION="Encrypted YAML backend for hiera"
|
||||
HOMEPAGE="https://github.com/TomPoulton/hiera-eyaml"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
ruby_add_rdepend "dev-ruby/highline"
|
||||
ruby_add_rdepend "dev-ruby/trollop"
|
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<herd>sysadmin</herd>
|
||||
<herd>ruby</herd>
|
||||
</pkgmetadata>
|
@ -1,2 +1,3 @@
|
||||
DIST fossil-src-20130911114349.tar.gz 3682124 SHA256 4e9cf637a1ea5a4c659ef163b7b9fc1be1c169095d74f94388210cd117fa8058 SHA512 39dee3fe3b17c2ce49cde7685a80d48fc6802c1ce022f2efabb4804ffb84dc217d244166dc827d00ad1618bcb6bfbb8f5adace481d87cac8532427a8ca1734ca WHIRLPOOL 33c7f2ffc08d3697e4106f32f4a9289897d690d45bdf7084a1a898f15098aa4170cecb429ea3e47ae37986b86d7765e2885cee717ac6dd6c428ff68c27de5a7e
|
||||
DIST fossil-src-20140612172556.tar.gz 3864747 SHA256 c9882f9beb95695db7402dbd03d8fbf082e1109429175af4d57e089bcd2db387 SHA512 7dcf888d471ebac68e8bcd2b6d964d078d026ef9f536d1e10ae2fdedeb808a7b63b3935bfce2613e03eb61714ced2f060dbfa7b117965bbde3e32b7adbb42184 WHIRLPOOL f4ff8cb23d505198520d10b1aa484c49213a917e0766a70cc386e5298b85fefc06209a4f1f920ce00de94f65bec49dbaa2904b71366ca1d99a931782f613ffd1
|
||||
DIST fossil-src-20150119112900.tar.gz 3973184 SHA256 37969e5a09c1611199921e3518a4ed736fd637a02f2d5810cd45897a4ceb92dc SHA512 9bee82916d98b5d7d81e200ec6616c1e463540de254464a559254ee117a99492a0080003645a99ef93cc551395e38b93dfb12728abbbdbf468f5c2743f67718e WHIRLPOOL 19175692472913bc94bf993956c1e0b8510ff33d6df2c168acf700e64b6f4e62eed34a4888c38e093eabfe582224edf5b7e03dc652b5f1e8824b9e8e5608d492
|
||||
|
@ -0,0 +1,46 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-vcs/fossil/fossil-20150119112900.ebuild,v 1.1 2015/02/11 23:41:59 rafaelmartins Exp $
|
||||
|
||||
EAPI=5
|
||||
MY_P=${PN}-src-${PV}
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
DESCRIPTION="Simple, high-reliability, source control management, and more"
|
||||
HOMEPAGE="http://www.fossil-scm.org/"
|
||||
SRC_URI="http://www.fossil-scm.org/download/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="BSD-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
IUSE="json +lineedit sqlite +ssl tcl"
|
||||
|
||||
DEPEND="sys-libs/zlib
|
||||
lineedit? ( || ( sys-libs/readline:0 dev-libs/libedit ) )
|
||||
ssl? ( dev-libs/openssl )
|
||||
sqlite? ( dev-db/sqlite:3 )
|
||||
tcl? ( dev-lang/tcl )
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
src_configure() {
|
||||
# this is not an autotools situation so don't make it seem like one
|
||||
# --with-tcl: works
|
||||
# --without-tcl: dies
|
||||
local myconf='--with-zlib'
|
||||
|
||||
myconf+=" --lineedit=$(usex lineedit 1 0)"
|
||||
myconf+=" --with-openssl=$(usex ssl auto none)"
|
||||
use json && myconf+=' --json'
|
||||
use sqlite && myconf+=' --disable-internal-sqlite'
|
||||
use tcl && myconf+=' --with-tcl --with-tcl-stubs'
|
||||
tc-export CC
|
||||
./configure ${myconf} || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin fossil
|
||||
}
|
@ -0,0 +1,123 @@
|
||||
gitg/gitg-author-details-dialog.vala | 1 -
|
||||
gitg/gitg-clone-dialog.vala | 5 +----
|
||||
libgitg/gitg-commit.vala | 4 ++--
|
||||
libgitg/gitg-lanes.vala | 4 ++--
|
||||
tests/libgitg/test-commit.vala | 2 +-
|
||||
5 files changed, 6 insertions(+), 10 deletions(-)
|
||||
|
||||
diff --git a/gitg/gitg-author-details-dialog.vala b/gitg/gitg-author-details-dialog.vala
|
||||
index 64cdb65..59f66dd 100644
|
||||
--- a/gitg/gitg-author-details-dialog.vala
|
||||
+++ b/gitg/gitg-author-details-dialog.vala
|
||||
@@ -81,7 +81,6 @@ namespace Gitg
|
||||
|
||||
try
|
||||
{
|
||||
- d_config.refresh();
|
||||
author_name = d_config.get_string("user.name");
|
||||
}
|
||||
catch {}
|
||||
diff --git a/gitg/gitg-clone-dialog.vala b/gitg/gitg-clone-dialog.vala
|
||||
index 94eb610..60390f9 100644
|
||||
--- a/gitg/gitg-clone-dialog.vala
|
||||
+++ b/gitg/gitg-clone-dialog.vala
|
||||
@@ -80,9 +80,8 @@ public class CloneDialog : Gtk.Dialog
|
||||
d_entry_url.changed.connect((e) => {
|
||||
string ?tooltip_text = null;
|
||||
string ?icon_name = null;
|
||||
- bool url_supported = Ggit.Remote.is_supported_url(d_entry_url.get_text());
|
||||
|
||||
- if (!url_supported && (d_entry_url.text != ""))
|
||||
+ if (d_entry_url.text != "")
|
||||
{
|
||||
icon_name = "dialog-warning-symbolic";
|
||||
tooltip_text = _("The URL introduced is not supported");
|
||||
@@ -90,8 +89,6 @@ public class CloneDialog : Gtk.Dialog
|
||||
|
||||
d_entry_url.set_icon_from_icon_name(Gtk.EntryIconPosition.SECONDARY, icon_name);
|
||||
d_entry_url.set_icon_tooltip_text(Gtk.EntryIconPosition.SECONDARY, tooltip_text);
|
||||
-
|
||||
- set_response_sensitive(Gtk.ResponseType.OK, url_supported);
|
||||
});
|
||||
}
|
||||
}
|
||||
diff --git a/libgitg/gitg-commit.vala b/libgitg/gitg-commit.vala
|
||||
index 2aba60d..2ec5a4c 100644
|
||||
--- a/libgitg/gitg-commit.vala
|
||||
+++ b/libgitg/gitg-commit.vala
|
||||
@@ -122,7 +122,7 @@ public class Commit : Ggit.Commit
|
||||
var parents = get_parents();
|
||||
|
||||
// Create a new diff from the parents to the commit tree
|
||||
- if (parents.size() == 0)
|
||||
+ if (parents.size == 0)
|
||||
{
|
||||
diff = new Ggit.Diff.tree_to_tree(repo,
|
||||
null,
|
||||
@@ -131,7 +131,7 @@ public class Commit : Ggit.Commit
|
||||
}
|
||||
else
|
||||
{
|
||||
- for (var i = 0; i < parents.size(); ++i)
|
||||
+ for (var i = 0; i < parents.size; ++i)
|
||||
{
|
||||
var parent = parents.get(0);
|
||||
|
||||
diff --git a/libgitg/gitg-lanes.vala b/libgitg/gitg-lanes.vala
|
||||
index 06886dc..f2d99f5 100644
|
||||
--- a/libgitg/gitg-lanes.vala
|
||||
+++ b/libgitg/gitg-lanes.vala
|
||||
@@ -158,7 +158,7 @@ public class Lanes : Object
|
||||
init_next_layer();
|
||||
var mylane = d_lanes[pos];
|
||||
|
||||
- for (uint i = 0; i < parents.size(); ++i)
|
||||
+ for (uint i = 0; i < parents.size; ++i)
|
||||
{
|
||||
int lnpos;
|
||||
var poid = parents.get_id(i);
|
||||
@@ -439,7 +439,7 @@ public class Lanes : Object
|
||||
|
||||
var parents = commit.get_parents();
|
||||
|
||||
- for (uint i = 0; i < parents.size(); ++i)
|
||||
+ for (uint i = 0; i < parents.size; ++i)
|
||||
{
|
||||
expand_lane_from_oid(parents.get_id(i));
|
||||
}
|
||||
diff --git a/tests/libgitg/test-commit.vala b/tests/libgitg/test-commit.vala
|
||||
index fd0c137..65c0473 100644
|
||||
--- a/tests/libgitg/test-commit.vala
|
||||
+++ b/tests/libgitg/test-commit.vala
|
||||
@@ -252,7 +252,7 @@ class Gitg.Test.Commit : Gitg.Test.Repository
|
||||
assert_streq(d_repository.get_head().get_target().to_string(),
|
||||
oid.to_string());
|
||||
|
||||
- assert_uinteq(commit.get_parents().size(), 0);
|
||||
+ assert_uinteq(commit.get_parents().size, 0);
|
||||
|
||||
var reflog = d_repository.lookup_reference("HEAD").get_log();
|
||||
var entry = reflog.get_entry_from_index(0);
|
||||
libgitg/gitg-repository-list-box.vala | 3 +--
|
||||
1 file changed, 1 insertion(+), 2 deletions(-)
|
||||
|
||||
diff --git a/libgitg/gitg-repository-list-box.vala b/libgitg/gitg-repository-list-box.vala
|
||||
index 8dd5b33..393b29e 100644
|
||||
--- a/libgitg/gitg-repository-list-box.vala
|
||||
+++ b/libgitg/gitg-repository-list-box.vala
|
||||
@@ -494,14 +494,13 @@ namespace Gitg
|
||||
d_row = row;
|
||||
}
|
||||
|
||||
- protected override bool transfer_progress(Ggit.TransferProgress stats) throws Error
|
||||
+ protected override void transfer_progress(Ggit.TransferProgress stats)
|
||||
{
|
||||
var recvobj = stats.get_received_objects();
|
||||
var indxobj = stats.get_indexed_objects();
|
||||
var totaobj = stats.get_total_objects();
|
||||
|
||||
d_row.fraction = (recvobj + indxobj) / (double)(2 * totaobj);
|
||||
- return true;
|
||||
}
|
||||
}
|
||||
|
@ -1 +1,2 @@
|
||||
DIST cutemaze-1.1.0-src.tar.bz2 249290 SHA256 cc039faf452f8c30fb00a90ba7571d688559c0df822fc213f3e78451921f9bef
|
||||
DIST cutemaze-1.1.0-src.tar.bz2 249290 SHA256 cc039faf452f8c30fb00a90ba7571d688559c0df822fc213f3e78451921f9bef SHA512 cab04fec1295bf47810807d564e3614f2ce137fdf88a48ba858fcc01ed4f3e4da42ba59954b440a4cd62506eeaabc5f5eb342f2dcbd526cd95d67c8dfeeb5838 WHIRLPOOL 6aa795173b89ae9d83c36643f49823abd58b24c643136cde77e301347f5b998c9e9b80282b9f179a4898af39e1f8565228b71af96c1aab550e6bca4b5e13eba1
|
||||
DIST cutemaze-1.1.1-src.tar.bz2 370854 SHA256 3236d012af36a8390b86524e84d38baa40a12203a1e991c653203f3a23a7445d SHA512 5f61e640ffa26ff1fa3c983fc9b091294a7707eaabeb5b0c14fd4a1e5b271afdb3c5924c342319234e0f0b1dcdb122bbdf15fa1340d3b80ccc7550479aa70bde WHIRLPOOL 1c928473b951abe6801388b0451ffeda60f248063b3619761ef2501b6285026c484d771006ed1aa224f76ccc071d00b17557eac66854fcc1b3f195f4184985f9
|
||||
|
@ -0,0 +1,32 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/games-puzzle/cutemaze/cutemaze-1.1.1.ebuild,v 1.1 2015/02/11 20:56:06 mr_bones_ Exp $
|
||||
|
||||
EAPI=5
|
||||
inherit eutils qt4-r2 games
|
||||
|
||||
DESCRIPTION="A simple, top-down game in which mazes are randomly generated"
|
||||
HOMEPAGE="http://gottcode.org/cutemaze/"
|
||||
SRC_URI="http://gottcode.org/${PN}/${P}-src.tar.bz2"
|
||||
|
||||
LICENSE="GPL-3+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="dev-qt/qtcore:4
|
||||
dev-qt/qtgui:4
|
||||
dev-qt/qtsvg:4"
|
||||
RDEPEND=${DEPEND}
|
||||
|
||||
src_configure() {
|
||||
qt4-r2_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dogamesbin cutemaze
|
||||
dodoc ChangeLog README
|
||||
doicon icons/${PN}.png
|
||||
domenu icons/${PN}.desktop
|
||||
prepgamesdirs
|
||||
}
|
@ -1,2 +1 @@
|
||||
DIST hexalate-1.0.1-src.tar.bz2 48423 SHA256 11de0ed0d0952fc8b86670dd4d7fc3d703166373bb88b73a6ef40e46f65aac75
|
||||
DIST hexalate-1.0.3-src.tar.bz2 336589 SHA256 a391ba44aa0f5bd618385dbe17e059947b829b85315aecb19edd1c863b3ebe3c SHA512 582e41ef298788e73e4f39976dbf334fdb514518e53556b77bd2a7f49d82f66617e21ab5ff24a298313e529aa147e80703fe9eb40318d9b74673dd6fcf32d909 WHIRLPOOL 4ce78bf4cb37346b4722f647e4dbda4fe3c88138264b8ad758302152cc199d7374f0cfadb8497ad767aae678345910701bc30f12ef7eb1b0e691a1df73fc40bf
|
||||
|
@ -1,30 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/games-puzzle/hexalate/hexalate-1.0.1.ebuild,v 1.4 2013/03/02 21:19:20 hwoarang Exp $
|
||||
|
||||
EAPI=2
|
||||
inherit eutils qt4-r2 games
|
||||
|
||||
DESCRIPTION="A color matching game"
|
||||
HOMEPAGE="http://gottcode.org/hexalate/"
|
||||
SRC_URI="http://gottcode.org/${PN}/${P}-src.tar.bz2"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="dev-qt/qtcore:4
|
||||
dev-qt/qtgui:4"
|
||||
|
||||
src_configure() {
|
||||
qt4-r2_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dogamesbin ${PN} || die
|
||||
doicon icons/${PN}.png
|
||||
domenu icons/${PN}.desktop
|
||||
dodoc README
|
||||
prepgamesdirs
|
||||
}
|
@ -1 +0,0 @@
|
||||
DIST trimines-1.3.0.tar.gz 78590 SHA256 87e6d48b474cf8097c0fac83f700fc098f8f4e65240ceaf0da81b5e644f7d65a SHA512 9a9c5e741460eff29a024aab85ee00d7ccc6111460dab50a8036c638afb9185fb6ffa728914bda7963a80b9b70c7a5f4a1125e08ddf4d90e220d9cfe6683548e WHIRLPOOL 9a5f6f59e957fd829fa4c9058d00d29f1d5549694e7734f49f56b4ccfaf144c3bae824d0bb378251ebd5004fcbb3fd510d83492d326bbdabc38b17b2e3063584
|
@ -1,101 +0,0 @@
|
||||
diff -ruN trimines-1.3.0.orig/Makefile trimines-1.3.0/Makefile
|
||||
--- trimines-1.3.0.orig/Makefile 1969-12-31 19:00:00.000000000 -0500
|
||||
+++ trimines-1.3.0/Makefile 2010-10-13 18:01:50.802198348 -0400
|
||||
@@ -0,0 +1,2 @@
|
||||
+trimines:
|
||||
+ $(CC) $(LDFLAGS) $(CFLAGS) src/main.c -o ./trimines `sdl-config --cflags` `sdl-config --libs`
|
||||
diff -ruN trimines-1.3.0.orig/src/boardinit.c trimines-1.3.0/src/boardinit.c
|
||||
--- trimines-1.3.0.orig/src/boardinit.c 2006-05-13 15:40:32.000000000 -0400
|
||||
+++ trimines-1.3.0/src/boardinit.c 2010-10-13 18:00:58.238609895 -0400
|
||||
@@ -22,7 +22,7 @@
|
||||
|
||||
void genrandmines(int ex, int ey)
|
||||
{
|
||||
-int rx,ry,count,z,i,j;
|
||||
+int rx,ry,count,i,j;
|
||||
|
||||
// generate random mines + (ex,ey) will never be a mine
|
||||
|
||||
diff -ruN trimines-1.3.0.orig/src/gfx.c trimines-1.3.0/src/gfx.c
|
||||
--- trimines-1.3.0.orig/src/gfx.c 2006-05-13 15:40:32.000000000 -0400
|
||||
+++ trimines-1.3.0/src/gfx.c 2010-10-13 18:00:58.238609895 -0400
|
||||
@@ -218,7 +218,7 @@
|
||||
|
||||
void drawcounter(int n,int posx, int posy)
|
||||
{
|
||||
-SDL_Surface *p1, *p2, *p3, *p4;
|
||||
+SDL_Surface *p2, *p3, *p4;
|
||||
int n1,n2,n3,num;
|
||||
|
||||
|
||||
diff -ruN trimines-1.3.0.orig/src/main.c trimines-1.3.0/src/main.c
|
||||
--- trimines-1.3.0.orig/src/main.c 2006-05-13 15:40:32.000000000 -0400
|
||||
+++ trimines-1.3.0/src/main.c 2010-10-13 18:00:58.239609676 -0400
|
||||
@@ -131,14 +131,14 @@
|
||||
int out;
|
||||
int loadimgs = 1;
|
||||
|
||||
-#include "boardinit.c"
|
||||
#include "counters.c"
|
||||
+#include "boardinit.c"
|
||||
#include "gfx.c"
|
||||
#include "gamestatus.c"
|
||||
#include "uncover.c"
|
||||
#include "menu.c"
|
||||
|
||||
-main(int argc, char *argv[])
|
||||
+int main(int argc, char *argv[])
|
||||
{
|
||||
if ( SDL_Init(SDL_INIT_VIDEO) < 0 ) {
|
||||
fprintf(stderr, "Unable to init SDL: %s\n", SDL_GetError());
|
||||
@@ -189,7 +189,7 @@
|
||||
SDL_Event event;
|
||||
|
||||
|
||||
-int x,y,x2,y2,mx,my,i,j;
|
||||
+int x,y,x2,y2,mx,my;
|
||||
|
||||
x2 = -1;
|
||||
|
||||
@@ -228,6 +228,7 @@
|
||||
break;
|
||||
case SDLK_F1: if (firstclick == 0 && gamestatus == 0) {solve();}
|
||||
break;
|
||||
+ default:;
|
||||
}
|
||||
|
||||
break; // end case SDL_KEYDOWN
|
||||
@@ -380,11 +381,13 @@
|
||||
break; // end case SDL_MOUSEBUTTONDOWN
|
||||
|
||||
case SDL_QUIT: SDL_ShowCursor(SDL_ENABLE); main(0,0);
|
||||
+ break;
|
||||
|
||||
+ default:;
|
||||
} // end switch (event.type)
|
||||
|
||||
} }// end whiles
|
||||
|
||||
atexit(SDL_Quit);
|
||||
-
|
||||
+ exit(0);
|
||||
}
|
||||
diff -ruN trimines-1.3.0.orig/src/menu.c trimines-1.3.0/src/menu.c
|
||||
--- trimines-1.3.0.orig/src/menu.c 2006-05-13 15:40:32.000000000 -0400
|
||||
+++ trimines-1.3.0/src/menu.c 2010-10-13 18:00:58.239609676 -0400
|
||||
@@ -104,6 +104,7 @@
|
||||
if (mode == 6) {if (mines != 1){mines--;}
|
||||
}}}
|
||||
break;
|
||||
+ default:;
|
||||
}
|
||||
|
||||
|
||||
@@ -126,6 +127,7 @@
|
||||
exit(0);
|
||||
break;
|
||||
|
||||
+ default:;
|
||||
}
|
||||
}
|
||||
|
@ -1,34 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/games-puzzle/trimines/trimines-1.3.0.ebuild,v 1.10 2015/02/11 07:14:24 mr_bones_ Exp $
|
||||
|
||||
EAPI=5
|
||||
inherit eutils games
|
||||
|
||||
DESCRIPTION="A mine sweeper game that uses triangles instead of squares"
|
||||
HOMEPAGE="http://www.freewebs.com/trimines/"
|
||||
SRC_URI="mirror://gentoo/${P}.tar.gz"
|
||||
|
||||
LICENSE="all-rights-reserved"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="media-libs/libsdl[video]"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
src_prepare() {
|
||||
sed -i \
|
||||
-e "s:data/:${GAMES_DATADIR}/${PN}/:" src/gfx.c \
|
||||
|| die "sed failed"
|
||||
epatch "${FILESDIR}"/${P}-gentoo.patch
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dogamesbin "${PN}"
|
||||
insinto "${GAMES_DATADIR}/${PN}"
|
||||
doins -r data/*
|
||||
dodoc README
|
||||
make_desktop_entry "${PN}" TriMines
|
||||
prepgamesdirs
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST wmpuzzle-0.5.0.tar.gz 81900 SHA256 1986777eefdf51a7dc17929b447d39ea455042ad319d734cfbba572a00476608 SHA512 22643a805f318e0818c1788e3f0c1efdbc221ba3b3656636748ac22e3bda03a8a892cf1a9e6d5a1686ca8c859bc6343b1d7698c17f61d0933fe3ad24be3611eb WHIRLPOOL 9ce84f9f5726028120ef81b608dab930bd696f74751bce17714483ce42de31232c6bb13c33cefd06825a41671dec81e1b9a22023fd05d739fae41c47c3d0c0dc
|
||||
DIST wmpuzzle-0.5.1.tar.gz 87611 SHA256 796abeac42debf31f7270c22ed82de0eda154a534127fd80f5265558aa1806e5 SHA512 4b2b06f038b483080630ea1fa1a6b12ab2fc312efbbfd48191c5dba8efff78b67f38078c28035532c03eee2ba8cbeef07ba2a46f0099226a5f4f31d324a3ee94 WHIRLPOOL 6ad04efdfcdc5007f81dcadcd0d28d0fb99375d505c98ebcf4d53abe5c5074d58fee0a5a53d7c9d651d48d7bba8fcf009cf9266f2bf084c93c4eeea59e4a3538
|
||||
DIST wmpuzzle-0.5.2.tar.gz 87373 SHA256 b48b9ddb0b0bb85fd9fa3aef859984bce77b5f5faa6dad9366d00c1862a74b9b SHA512 7d171d307e3829005dff4d718161655785e87129b07917d494bb498eff904adafc7c6f83e71f996759ee9e365fe70c67858a5ec9d2647fe573e0a1505126f6c0 WHIRLPOOL 8d91e237b85ccc46ca27308f7c4e69b1cc00d9602d7e679fe6340d7442dc4c7a47c8b2bef07ae1ccc4c0998fdee0b54d55ccfa9c9dfe85eb55ec3a7a5ba93508
|
||||
|
@ -0,0 +1,48 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/games-puzzle/wmpuzzle/wmpuzzle-0.5.2.ebuild,v 1.1 2015/02/11 21:04:03 mr_bones_ Exp $
|
||||
|
||||
EAPI=5
|
||||
inherit eutils gnome2-utils games
|
||||
|
||||
DESCRIPTION="wmpuzzle provides a 4x4 puzzle on a 64x64 mini window"
|
||||
HOMEPAGE="http://freecode.com/projects/wmpuzzle"
|
||||
SRC_URI="http://people.debian.org/~godisch/wmpuzzle/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="x11-libs/libX11
|
||||
x11-libs/libXext
|
||||
x11-libs/libXpm"
|
||||
DEPEND="${RDEPEND}
|
||||
x11-proto/xextproto"
|
||||
|
||||
S=${WORKDIR}/${P}/src
|
||||
|
||||
src_install() {
|
||||
dogamesbin ${PN}
|
||||
|
||||
dodoc ../{CHANGES,README}
|
||||
newicon -s 48 numbers.xpm ${PN}.xpm
|
||||
doman ${PN}.6
|
||||
make_desktop_entry ${PN}
|
||||
|
||||
prepgamesdirs
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
gnome2_icon_savelist
|
||||
games_pkg_preinst
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
gnome2_icon_cache_update
|
||||
games_pkg_postinst
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
gnome2_icon_cache_update
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST gnome-boxes-3.12.3.tar.xz 2197824 SHA256 bf57525106baaa635d08a4a4c6ed81e4b8c8708897f2fe7c2623810aec9b6408 SHA512 931cec25dfc9d5788f37ec9a49927b79117a31125302e4d95eaa144f8e8f313adf6190520ed626c078ba80d81ddf7c4b4b827f4da1f46cf9205d5b62f4182a11 WHIRLPOOL 76b5b2d8da7882efe88cc876853024fdcbc31fc2e62f98297986a138aa62180170529be1ab333cae67c1a3e533ced84aa8525ba6f759424baa5c2220a641a2b3
|
||||
DIST gnome-boxes-3.14.2.tar.xz 1354996 SHA256 7bfa27a4575c3b84e5818358cc554bc1385ef717aaecdb3d7d48c34b0451ea31 SHA512 648dc5c53ec94d95a422ca2b9429d8439e82222a78d12dd34f558fb9f60314f099a7e8ff3d6ba3b83ec62bd72fb68b13b3452dd9203a4cbe2f908203ee5cb288 WHIRLPOOL 7c696597a10d8ffafc2f7c181b6d2f9b034312a543610093db6e355926d34792e3c8861572e8e09cb7e6ea4f3690f7b59cc7e01b9ecc20ae14612f4461930d9a
|
||||
DIST gnome-boxes-3.14.3.1.tar.xz 1363088 SHA256 048df41ce1bcece1d89dfddcb571ed17dfa7f614929cd63f3079d14c66c10f24 SHA512 c714ff854f63832a2d0b6660378d36d5dfd99ece584a12ebe066cb58da6ee374287069d23a28f1966c343e68b5db25dbac5651031316bbe464f37a0746bf5822 WHIRLPOOL 18ec809438a64d7fa8e96a3bff9beece05c9312e2920bc5c10ca9efd8669b9b0eb1ace403d5252729da23735f3f9aec3f58be5a269df56a18bb9ca11e6f7d137
|
||||
|
@ -0,0 +1,107 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/gnome-extra/gnome-boxes/gnome-boxes-3.14.3.1.ebuild,v 1.1 2015/02/12 13:00:19 pacho Exp $
|
||||
|
||||
EAPI="5"
|
||||
GCONF_DEBUG="no"
|
||||
VALA_USE_DEPEND="vapigen"
|
||||
VALA_MIN_API_VERSION="0.26"
|
||||
|
||||
inherit linux-info gnome2 readme.gentoo vala
|
||||
|
||||
DESCRIPTION="Simple GNOME 3 application to access remote or virtual systems"
|
||||
HOMEPAGE="https://wiki.gnome.org/Apps/Boxes"
|
||||
|
||||
LICENSE="LGPL-2"
|
||||
SLOT="0"
|
||||
|
||||
# We force 'bindist' due to licenses from gnome-boxes-nonfree
|
||||
IUSE="smartcard usbredir" #bindist
|
||||
KEYWORDS="~amd64" # qemu-kvm[spice] is 64bit-only
|
||||
|
||||
# NOTE: sys-fs/* stuff is called via exec()
|
||||
# FIXME: ovirt is not available in tree
|
||||
# FIXME: use vala.eclass but only because of libgd not being able
|
||||
# to use its pre-generated files so do not copy all the
|
||||
# vala deps like live ebuild has.
|
||||
RDEPEND="
|
||||
>=app-arch/libarchive-3:=
|
||||
>=dev-libs/glib-2.38:2
|
||||
>=dev-libs/gobject-introspection-0.9.6
|
||||
>=dev-libs/libxml2-2.7.8:2
|
||||
>=sys-libs/libosinfo-0.2.11
|
||||
>=app-emulation/qemu-1.3.1[spice,smartcard?,usbredir?]
|
||||
>=app-emulation/libvirt-0.9.3[libvirtd,qemu]
|
||||
>=app-emulation/libvirt-glib-0.1.9
|
||||
>=x11-libs/gtk+-3.13.2:3
|
||||
>=net-libs/gtk-vnc-0.4.4[gtk3]
|
||||
>=net-misc/spice-gtk-0.16[gtk3,smartcard?,usbredir?]
|
||||
|
||||
>=app-misc/tracker-0.16:0=[iso]
|
||||
|
||||
>=sys-apps/util-linux-2.20
|
||||
>=net-libs/libsoup-2.38:2.4
|
||||
|
||||
sys-fs/fuse
|
||||
sys-fs/fuseiso
|
||||
sys-fs/mtools
|
||||
virtual/libgudev:=
|
||||
"
|
||||
# !bindist? ( gnome-extra/gnome-boxes-nonfree )
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
$(vala_depend)
|
||||
app-text/yelp-tools
|
||||
dev-util/desktop-file-utils
|
||||
>=dev-util/intltool-0.40
|
||||
>=sys-devel/gettext-0.17
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
DISABLE_AUTOFORMATTING="yes"
|
||||
DOC_CONTENTS="Before running gnome-boxes, you will need to load the KVM modules.
|
||||
If you have an Intel Processor, run:
|
||||
# modprobe kvm-intel
|
||||
|
||||
If you have an AMD Processor, run:
|
||||
# modprobe kvm-amd"
|
||||
|
||||
pkg_pretend() {
|
||||
linux-info_get_any_version
|
||||
|
||||
if linux_config_exists; then
|
||||
if ! { linux_chkconfig_present KVM_AMD || \
|
||||
linux_chkconfig_present KVM_INTEL; }; then
|
||||
ewarn "You need KVM support in your kernel to use GNOME Boxes!"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# Do not change CFLAGS, wondering about VALA ones but appears to be
|
||||
# needed as noted in configure comments below
|
||||
sed 's/CFLAGS="$CFLAGS -O0 -ggdb3"//' -i configure{.ac,} || die
|
||||
|
||||
vala_src_prepare
|
||||
gnome2_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# debug needed for splitdebug proper behavior (cardoe), bug #????
|
||||
gnome2_src_configure \
|
||||
--enable-debug \
|
||||
--disable-strict-cc \
|
||||
$(use_enable usbredir) \
|
||||
$(use_enable smartcard) \
|
||||
--enable-ovirt=no
|
||||
}
|
||||
|
||||
src_install() {
|
||||
gnome2_src_install
|
||||
readme.gentoo_create_doc
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
gnome2_pkg_postinst
|
||||
readme.gentoo_print_elog
|
||||
}
|
@ -1,4 +1,5 @@
|
||||
DIST mutt-1.5.22-gentoo-patches-r2.tar.bz2 81259 SHA256 d4ec35bfaf51276645feb9a7808455e6970aa2c171ed9767d2c6c2f3c9c60f5c SHA512 99b5c37dcd74aabc6c8673321aa13d00dab6bf82ad593ede920897921d633903d1de7fc4a80e04cccf0a5d7673560cb7a4e94830fcae27b60d696cb65315ba50 WHIRLPOOL c164faa5822a8181497a57526dcfe123e2fd5d0aa4db76c702a3794a1adb0fdb56377c4471464828617e44beadd7cd7509c2145fb7ae038b753b61be826bf6ba
|
||||
DIST mutt-1.5.22.tar.gz 3782237 SHA256 8feae890ed0758a5108bafaef27bd8fc9c378675acf25a3c620f2c7b7540f3a7 SHA512 96edfafa9460bbaff1c5a78f40735599f53e08f794866822558d59e351646b1d2045afbf97000012a6d9f261649e9b473c01f89ade542712120f9213c657b0a1 WHIRLPOOL 4c13c6f667a8990b933c8e25f43e96ba0562785b4038776949abea45454a1621bf1bb9351a52bec3d69909b9dc643de7f7ba383119f1ab8b20cea77d0bad1da9
|
||||
DIST mutt-1.5.23-gentoo-patches-r5.tar.bz2 127745 SHA256 a2c457071b17fc1886c8f0d24728df388c5c90eed3276783db061b92212786f3 SHA512 8f89abcca7048a24f5e37190b479f724eb51eb6a1703bc419c9f200f4ad1cb544fa7283ea6d76519f002aed26c9c2f54bd14e89b845001755a0b98e3317b39f8 WHIRLPOOL 04843ec6df35a34b2f601caaff60c6cd2fe16ab66946c6ab0a3be0ff4570743fdc365f7fb28c00c16b6d88e299d0b1b8fac86e8936474e170d1f0d2331209e2c
|
||||
DIST mutt-1.5.23-gentoo-patches-r6.tar.bz2 146133 SHA256 8d86fd8ce3be2febf9e13963d5a33088cea34d42e7d5f0eca7fd1bed5cfb12cc SHA512 f6901c1afe651b96a7159a4151738bc2492e9edc4f5f462586278cb2e999affb18e469f81490f3d14b4841bbe8faab32458568795c25784f9d59b30f57278863 WHIRLPOOL 3f9e07ec9eaf029a636e0fb4e1f0723ff4cc202195574748a14ae2950fde6af94f428f017129bcd550caae87dc28933dd0d93bcb7d2066f36255c93da4a5b4f9
|
||||
DIST mutt-1.5.23.tar.gz 3782032 SHA256 3af0701e57b9e1880ed3a0dee34498a228939e854a16cdccd24e5e502626fd37 SHA512 f1b4a7230253651857f61bd7215cce870a613012f613d4c907d401556083726c8ed7d429d57a8bf858c3b5b23683380d4c1494540d86ca80813e22cb6b95bc1e WHIRLPOOL b5a676d204aece8c572d57a027fa5a402b7afe8e5b7d4c83b2d1b1612eb0ac5cb58cd225757732a017f03444e0ea42dacffcf1cf2d46c18ae92d7d3306059c61
|
||||
|
@ -0,0 +1,250 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/mail-client/mutt/mutt-1.5.23-r6.ebuild,v 1.1 2015/02/11 20:42:22 grobian Exp $
|
||||
|
||||
EAPI="5"
|
||||
|
||||
inherit eutils flag-o-matic autotools
|
||||
|
||||
PATCHSET_REV="-r6"
|
||||
|
||||
DESCRIPTION="A small but very powerful text-based mail client"
|
||||
HOMEPAGE="http://www.mutt.org/"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz
|
||||
mirror://bitbucket/${PN}/${PN}/downloads/${P}.tar.gz
|
||||
ftp://ftp.mutt.org/mutt/devel/${P}.tar.gz
|
||||
mirror://gentoo/${P}-gentoo-patches${PATCHSET_REV}.tar.bz2
|
||||
http://dev.gentoo.org/~grobian/distfiles/${P}-gentoo-patches${PATCHSET_REV}.tar.bz2"
|
||||
IUSE="berkdb crypt debug doc gdbm gnutls gpg idn imap kerberos mbox nls nntp pop qdbm sasl selinux sidebar slang smime smtp ssl tokyocabinet"
|
||||
SLOT="0"
|
||||
LICENSE="GPL-2"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x64-freebsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
CDEPEND="
|
||||
app-misc/mime-types
|
||||
nls? ( virtual/libintl )
|
||||
tokyocabinet? ( dev-db/tokyocabinet )
|
||||
!tokyocabinet? (
|
||||
qdbm? ( dev-db/qdbm )
|
||||
!qdbm? (
|
||||
gdbm? ( sys-libs/gdbm )
|
||||
!gdbm? ( berkdb? ( >=sys-libs/db-4 ) )
|
||||
)
|
||||
)
|
||||
imap? (
|
||||
gnutls? ( >=net-libs/gnutls-1.0.17 )
|
||||
!gnutls? ( ssl? ( >=dev-libs/openssl-0.9.6 ) )
|
||||
sasl? ( >=dev-libs/cyrus-sasl-2 )
|
||||
)
|
||||
kerberos? ( virtual/krb5 )
|
||||
pop? (
|
||||
gnutls? ( >=net-libs/gnutls-1.0.17 )
|
||||
!gnutls? ( ssl? ( >=dev-libs/openssl-0.9.6 ) )
|
||||
sasl? ( >=dev-libs/cyrus-sasl-2 )
|
||||
)
|
||||
smtp? (
|
||||
gnutls? ( >=net-libs/gnutls-1.0.17 )
|
||||
!gnutls? ( ssl? ( >=dev-libs/openssl-0.9.6 ) )
|
||||
sasl? ( >=dev-libs/cyrus-sasl-2 )
|
||||
)
|
||||
idn? ( net-dns/libidn )
|
||||
gpg? ( >=app-crypt/gpgme-0.9.0 )
|
||||
smime? ( >=dev-libs/openssl-0.9.6 )
|
||||
slang? ( sys-libs/slang )
|
||||
!slang? ( >=sys-libs/ncurses-5.2 )
|
||||
"
|
||||
DEPEND="${CDEPEND}
|
||||
net-mail/mailbase
|
||||
doc? (
|
||||
dev-libs/libxml2
|
||||
dev-libs/libxslt
|
||||
app-text/docbook-xsl-stylesheets
|
||||
|| ( www-client/lynx www-client/w3m www-client/elinks )
|
||||
)"
|
||||
RDEPEND="${CDEPEND}
|
||||
selinux? ( sec-policy/selinux-mutt )
|
||||
"
|
||||
PATCHDIR="${WORKDIR}"/${P}-gentoo-patches${PATCHSET_REV}
|
||||
|
||||
src_prepare() {
|
||||
# Post-release hot-fixes grabbed from HG, this is what all following
|
||||
# patches are based on in my Mercurial patchqueue (mq).
|
||||
# If you ever take over or need to modify patches here, just check
|
||||
# out the gentoo branch(es) of Gentoo's Mutt Mercurial clone, and
|
||||
# the patchqueue as it'll save you a lot of work.
|
||||
# http://prefix.gentooexperimental.org:8000/mutt/
|
||||
# http://prefix.gentooexperimental.org:8000/mutt-patches/
|
||||
for rev in $(eval echo {0..${PR#r}}) ; do
|
||||
local revpatch="${PATCHDIR}"/mutt-gentoo-${PV}-r${rev}.patch
|
||||
[[ -e ${revpatch} ]] && \
|
||||
epatch "${revpatch}"
|
||||
done
|
||||
# fix compilation with ncurses[tinfo], #459260
|
||||
epatch "${PATCHDIR}"/ncurses-tinfo.patch
|
||||
|
||||
# this patch is non-generic and only works because we use a sysconfdir
|
||||
# different from the one used by the mailbase ebuild
|
||||
use prefix && epatch "${PATCHDIR}"/prefix-mailcap.patch
|
||||
|
||||
# must have fixes to compile or behave correctly, upstream
|
||||
# ignores, disagrees or simply doesn't respond/apply
|
||||
epatch "${PATCHDIR}"/bdb-prefix.patch # fix bdb detection
|
||||
# same category, but functional bits
|
||||
epatch "${PATCHDIR}"/dont-reveal-bbc.patch
|
||||
|
||||
# the big feature patches that upstream doesn't want to include, but
|
||||
# nearly every distro has due to their usefulness
|
||||
for p in "${PATCHDIR}"/[0-9][0-9]-*.patch ; do
|
||||
epatch "${p}"
|
||||
done
|
||||
|
||||
# we conditionalise this one, simply because it has considerable
|
||||
# impact on the code
|
||||
if use sidebar ; then
|
||||
epatch "${PATCHDIR}"/sidebar-20140412.patch
|
||||
epatch "${PATCHDIR}"/sidebar-dotpathsep.patch
|
||||
epatch "${PATCHDIR}"/sidebar-counts.patch
|
||||
fi
|
||||
|
||||
local upatches=
|
||||
# allow user patches
|
||||
epatch_user && upatches=" with user patches"
|
||||
|
||||
# patch version string for bug reports
|
||||
sed -i -e 's/"Mutt %s (%s)"/"Mutt %s (%s, Gentoo '"${PVR}${upatches}"')"/' \
|
||||
muttlib.c || die "failed patching in Gentoo version"
|
||||
|
||||
# many patches touch the buildsystem, we always need this
|
||||
AT_M4DIR="m4" eautoreconf
|
||||
|
||||
# the configure script contains some "cleverness" whether or not to setgid
|
||||
# the dotlock program, resulting in bugs like #278332
|
||||
sed -i -e 's/@DOTLOCK_GROUP@//' \
|
||||
Makefile.in || die "sed failed"
|
||||
|
||||
# don't just build documentation (lengthy process, with big dependencies)
|
||||
if use !doc ; then
|
||||
sed -i -e '/SUBDIRS =/s/doc//' Makefile.in || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf="
|
||||
$(use_enable crypt pgp) \
|
||||
$(use_enable debug) \
|
||||
$(use_enable gpg gpgme) \
|
||||
$(use_enable imap) \
|
||||
$(use_enable nls) \
|
||||
$(use_enable nntp) \
|
||||
$(use_enable pop) \
|
||||
$(use_enable smime) \
|
||||
$(use_enable smtp) \
|
||||
$(use_with idn) \
|
||||
$(use_with kerberos gss) \
|
||||
$(use slang && echo --with-slang) \
|
||||
--enable-compressed \
|
||||
--enable-external-dotlock \
|
||||
--enable-nfs-fix \
|
||||
--sysconfdir=${EPREFIX}/etc/${PN} \
|
||||
--with-curses \
|
||||
--with-docdir=${EPREFIX}/usr/share/doc/${PN}-${PVR} \
|
||||
--with-regex \
|
||||
--with-exec-shell=${EPREFIX}/bin/sh"
|
||||
|
||||
case $CHOST in
|
||||
*-solaris*)
|
||||
# Solaris has no flock in the standard headers
|
||||
myconf="${myconf} --enable-fcntl --disable-flock"
|
||||
;;
|
||||
*)
|
||||
myconf="${myconf} --disable-fcntl --enable-flock"
|
||||
;;
|
||||
esac
|
||||
|
||||
# mutt prioritizes gdbm over bdb, so we will too.
|
||||
# hcache feature requires at least one database is in USE.
|
||||
if use tokyocabinet; then
|
||||
myconf="${myconf} --enable-hcache \
|
||||
--with-tokyocabinet --without-qdbm --without-gdbm --without-bdb"
|
||||
elif use qdbm; then
|
||||
myconf="${myconf} --enable-hcache \
|
||||
--without-tokyocabinet --with-qdbm --without-gdbm --without-bdb"
|
||||
elif use gdbm ; then
|
||||
myconf="${myconf} --enable-hcache \
|
||||
--without-tokyocabinet --without-qdbm --with-gdbm --without-bdb"
|
||||
elif use berkdb; then
|
||||
myconf="${myconf} --enable-hcache \
|
||||
--without-tokyocabinet --without-qdbm --without-gdbm --with-bdb"
|
||||
else
|
||||
myconf="${myconf} --disable-hcache \
|
||||
--without-tokyocabinet --without-qdbm --without-gdbm --without-bdb"
|
||||
fi
|
||||
|
||||
# there's no need for gnutls, ssl or sasl without socket support
|
||||
if use pop || use imap || use smtp ; then
|
||||
if use gnutls; then
|
||||
myconf="${myconf} --with-gnutls"
|
||||
elif use ssl; then
|
||||
myconf="${myconf} --with-ssl"
|
||||
fi
|
||||
# not sure if this should be mutually exclusive with the other two
|
||||
myconf="${myconf} $(use_with sasl)"
|
||||
else
|
||||
myconf="${myconf} --without-gnutls --without-ssl --without-sasl"
|
||||
fi
|
||||
|
||||
if use mbox; then
|
||||
myconf="${myconf} --with-mailpath=${EPREFIX}/var/spool/mail"
|
||||
else
|
||||
myconf="${myconf} --with-homespool=Maildir"
|
||||
fi
|
||||
|
||||
econf ${myconf} || die "configure failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install || die "install failed"
|
||||
if use mbox; then
|
||||
insinto /etc/mutt
|
||||
newins "${FILESDIR}"/Muttrc.mbox Muttrc
|
||||
else
|
||||
insinto /etc/mutt
|
||||
doins "${FILESDIR}"/Muttrc
|
||||
fi
|
||||
|
||||
# A newer file is provided by app-misc/mime-types. So we link it.
|
||||
rm "${ED}"/etc/${PN}/mime.types
|
||||
dosym /etc/mime.types /etc/${PN}/mime.types
|
||||
|
||||
# A man-page is always handy, so fake one
|
||||
if use !doc; then
|
||||
emake -C doc DESTDIR="${D}" muttrc.man || die
|
||||
# make the fake slightly better, bug #413405
|
||||
sed -e 's#@docdir@/manual.txt#http://www.mutt.org/doc/devel/manual.html#' \
|
||||
-e 's#in @docdir@,#at http://www.mutt.org/,#' \
|
||||
-e "s#@sysconfdir@#${EPREFIX}/etc/${PN}#" \
|
||||
-e "s#@bindir@#${EPREFIX}/usr/bin#" \
|
||||
doc/mutt.man > mutt.1
|
||||
cp doc/muttbug.man flea.1
|
||||
cp doc/muttrc.man muttrc.5
|
||||
doman mutt.1 flea.1 muttrc.5
|
||||
else
|
||||
# nuke manpages that should be provided by an MTA, bug #177605
|
||||
rm "${ED}"/usr/share/man/man5/{mbox,mmdf}.5 \
|
||||
|| ewarn "failed to remove files, please file a bug"
|
||||
fi
|
||||
|
||||
if use !prefix ; then
|
||||
fowners root:mail /usr/bin/mutt_dotlock
|
||||
fperms g+s /usr/bin/mutt_dotlock
|
||||
fi
|
||||
|
||||
dodoc BEWARE COPYRIGHT ChangeLog NEWS OPS* PATCHES README* TODO VERSION
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
echo
|
||||
elog "If you are new to mutt you may want to take a look at"
|
||||
elog "the Gentoo QuickStart Guide to Mutt E-Mail:"
|
||||
elog " http://www.gentoo.org/doc/en/guide-to-mutt.xml"
|
||||
echo
|
||||
}
|
@ -1,2 +1,2 @@
|
||||
DIST SDL_Pango-0.1.2-API-adds.patch 3624 RMD160 052602db317522d459b155114096e71e28666299 SHA1 20a8441a7e051e8928400c89dedbb6ef169c7c65 SHA256 5a989c7acb539fce640323d3995cca8913a4b8869f5c690b78501ec6b5c86d5d
|
||||
DIST SDL_Pango-0.1.2.tar.gz 405967 RMD160 d2531cfbe726d27054ca03978721bcc76413379a SHA1 c30f2941d476d9362850a150d29cb4a93730af68 SHA256 7f75d3b97acf707c696ea126424906204ebfa07660162de925173cdd0257eba4
|
||||
DIST SDL_Pango-0.1.2-API-adds.patch 3624 SHA256 5a989c7acb539fce640323d3995cca8913a4b8869f5c690b78501ec6b5c86d5d SHA512 cfda28cd9334989abf7d99a36a15d6d4aac0ee5e9315b21bd5999d106bcd671717328b53cd58c2fa406f61f1728860c2ef7e1cf15bf53b44da4b3cc902a7f7ad WHIRLPOOL db724b014bb217aeb27297801e669cd557bb2cc376d34c4d0776ca9f2f5cea007b8bae3d57392dab4f61aeb06eaa21a9a2a28ad1d22cf487fa3266ce68a7263f
|
||||
DIST SDL_Pango-0.1.2.tar.gz 405967 SHA256 7f75d3b97acf707c696ea126424906204ebfa07660162de925173cdd0257eba4 SHA512 081ec57e0f55ce541c35393d6db7ea48b662a5008760781076d70c0a645d47f7e994f695c459ed51f8cb71494911a04cd416733fb57934321b806a1ac9878440 WHIRLPOOL afabdcd2c0bd3edddf84dc3220fd7149b615bba32fde95e7995d43cf3b0d171ac8075d2294ed790824e7742fb24aef94c547b456dda81a1a9ba7f7616bd95651
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue