parent
d39d3c96f9
commit
657c893f91
@ -1 +1 @@
|
||||
DIST vit-1.2.tar.gz 49258 SHA256 1591a57904ccd9b3a2a3c73ddb1266e3256ebcc98b60b7ae27b831f1a8dfda82 SHA512 bac6924fe7b844891c86dfa17193c00eefbecc437548e6768a9a2f11c5ce1c845e987beef2f0456fbc52c222821c59fdd1303bcc289460a77f0d6dafe7e94011 WHIRLPOOL 6426f460cbc4e2e6fca9f2d83e1096dac04c9877354c12e93a62cb876308823fa07b46b575374d2c81b2b0f15dd0a3369b012c3f97859bd4398d988278abc733
|
||||
DIST vit-1.2.tar.gz 49346 SHA256 2c3a146914c2d572884f2d9cc745d3422cea1db2d8a2e9a13a633449844df637 SHA512 dc0e09fbec7d77817b044f437e42108a9282e387698dfe23bfbe50a083b708d5d3b432ce9b1fdb93f3fef495af2a5f16107351557a4bb9184c7c762b264f0ed3 WHIRLPOOL 13fbd501e84eae4ea91805b10acf205e2f9d62caeb82e5e33cd6cd782383e62623d38ed90d836e8cb048c4887fece4f3ba7682fdce381df6882a7c3111af9880
|
||||
|
@ -1,2 +1,3 @@
|
||||
DIST calibre-2.78.0.tar.xz 38739404 SHA256 d2b0b0c5451d3ac05ce9de0b801ddf8de7664fee45f273d7ee8445a1ec2f898b SHA512 0779ac385dde45ac4baee7cecb0916e245f3e1cf20662bad9d9a4278265390b1aa89c2b478601b57113e7de08a69343288488ee299e8b43332f0129e650aa0ca WHIRLPOOL 325fc344445078ef0df0a29b4cd8e32445a881ede89e3db87606166ff0c8b7db10b7cc34432e63c2bb49382537a5107686339b987f1be807d59a1786ddfd4a75
|
||||
DIST calibre-2.80.0.tar.xz 38781996 SHA256 33a6dbc578c7a2f3d1c97253769506a1afc10f688c062f027d64d7081618f2b1 SHA512 9dc874cd7bfcc883514e354a494a83c63d19b88980df8f28fc03b57d3ebaafb45dad36f0d61e8ef08d363ed18a7bd953e8d624c69f0c3d7f7d66308fceac8982 WHIRLPOOL b40701e810d9a9fab333f420bb1f14a89ac55dd7397407d4f31837efc97d323f74b94181436b8038004e404aff6e9c5696deee89daf1cd949e5659dbe43207c4
|
||||
DIST calibre-2.83.0.tar.xz 38875672 SHA256 96166e8c74047cfbae9289c38ab5e2f661168048e568cd187f908242d98426ab SHA512 a28aa52379bc317e648087b28859a8e2c50dd4e2ccb3352e135f896ad95ab9c85c1fba162fe3acd5056be80e7c4e9481ea1396cb638661cfdb27795051124821 WHIRLPOOL bcce15cbfdcf78a56a24f931ae4eed688c7409af0455e9f1ca7aaf00751fa0b4a55e570501bc1b10d02a8e8397df979a18a999b4ddbbb645a7a376cded76cbec
|
||||
|
@ -0,0 +1,256 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
PYTHON_REQ_USE="sqlite,ssl"
|
||||
|
||||
inherit eutils fdo-mime bash-completion-r1 multilib toolchain-funcs python-single-r1
|
||||
|
||||
DESCRIPTION="Ebook management application"
|
||||
HOMEPAGE="http://calibre-ebook.com/"
|
||||
SRC_URI="http://download.calibre-ebook.com/${PV}/${P}.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"
|
||||
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
COMMON_DEPEND="${PYTHON_DEPS}
|
||||
>=app-text/podofo-0.8.2:=
|
||||
>=app-text/poppler-0.26.5[qt5]
|
||||
>=dev-libs/chmlib-0.40:=
|
||||
dev-libs/glib:2
|
||||
>=dev-libs/icu-57.1:=
|
||||
>=dev-python/apsw-3.13.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/beautifulsoup-3.0.5:python-2[${PYTHON_USEDEP}]
|
||||
>=dev-python/cssselect-0.7.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/cssutils-1.0.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/dbus-python-1.2.4[${PYTHON_USEDEP}]
|
||||
>=dev-libs/dbus-glib-0.106
|
||||
>=sys-apps/dbus-1.10.8
|
||||
>=dev-python/lxml-3.2.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/mechanize-0.2.5[${PYTHON_USEDEP}]
|
||||
dev-python/netifaces[${PYTHON_USEDEP}]
|
||||
dev-python/pillow[${PYTHON_USEDEP}]
|
||||
dev-python/psutil[${PYTHON_USEDEP}]
|
||||
>=dev-python/pygments-2.1.3[${PYTHON_USEDEP}]
|
||||
>=dev-python/python-dateutil-2.5.3[${PYTHON_USEDEP}]
|
||||
>=dev-python/PyQt5-5.8[gui,svg,webkit,widgets,network,printsupport,${PYTHON_USEDEP}]
|
||||
dev-qt/qtcore:5
|
||||
dev-qt/qtgui:5
|
||||
dev-qt/qtwidgets:5
|
||||
media-fonts/liberation-fonts
|
||||
>=media-gfx/imagemagick-6.5.9[jpeg,png]
|
||||
media-libs/fontconfig
|
||||
>=media-libs/freetype-2:=
|
||||
>=media-libs/libmtp-1.1.11:=
|
||||
>=media-libs/libwmf-0.2.8
|
||||
>=media-gfx/optipng-0.7.6
|
||||
>=app-pda/usbmuxd-1.0.8
|
||||
>=app-pda/libimobiledevice-1.2.0
|
||||
sys-libs/zlib
|
||||
virtual/libusb:1=
|
||||
virtual/python-dnspython[${PYTHON_USEDEP}]
|
||||
x11-libs/libX11
|
||||
x11-libs/libXext
|
||||
x11-libs/libXrender
|
||||
>=x11-misc/xdg-utils-1.0.2-r2
|
||||
udisks? ( virtual/libudev )"
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
udisks? ( || ( sys-fs/udisks:2 sys-fs/udisks:0 ) )"
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
>=dev-python/setuptools-23.1.0[${PYTHON_USEDEP}]
|
||||
>=virtual/podofo-build-0.9.4
|
||||
virtual/pkgconfig"
|
||||
|
||||
src_prepare() {
|
||||
# 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
|
||||
eapply \
|
||||
"${FILESDIR}/${PN}-2.9.0-no_updates_dialog.patch" \
|
||||
"${FILESDIR}/${PN}-disable_plugins.patch" \
|
||||
"${FILESDIR}/${PN}-2.83.0-lzxd-bounds-error-bug-540596.patch"
|
||||
|
||||
eapply_user
|
||||
|
||||
# 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|cmd\[2\]|cmd[4]|" \
|
||||
-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/build.py || die "sed failed to patch build.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'
|
||||
|
||||
# don't create/install uninstaller
|
||||
sed '/self\.create_uninstaller()/d' -i src/calibre/linux.py || 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}
|
||||
echo $0 : $@
|
||||
exit 0
|
||||
EOF
|
||||
|
||||
cp "${T}"/{kbuildsycoca,update-mime-database} || die
|
||||
chmod +x "${T}"/{kbuildsycoca,update-mime-database} || die
|
||||
|
||||
export QMAKE="${EPREFIX}/usr/$(get_libdir)/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}" || die
|
||||
|
||||
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
|
||||
#dodir $(python_get_sitedir)
|
||||
PATH=${T}:${PATH} PYTHONPATH=${S}/src${PYTHONPATH:+:}${PYTHONPATH} \
|
||||
"${PYTHON}" setup.py install \
|
||||
--root="${D}" \
|
||||
--prefix="${EPREFIX}/usr" \
|
||||
--libdir="${EPREFIX}/usr/${libdir}" \
|
||||
--staging-root="${ED}usr" \
|
||||
--staging-libdir="${ED}usr/${libdir}" || 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"
|
||||
|
||||
find "${ED}"usr/share -type d -empty -delete
|
||||
|
||||
cd "${ED}"/usr/share/calibre/fonts/liberation || die
|
||||
local x
|
||||
for x in * ; do
|
||||
[[ -f ${EPREFIX}usr/share/fonts/liberation-fonts/${x} ]] || continue
|
||||
ln -sf "../../../fonts/liberation-fonts/${x}" "${x}" || die
|
||||
done
|
||||
|
||||
einfo "Converting python shebangs"
|
||||
python_fix_shebang "${ED}"
|
||||
|
||||
einfo "Compiling python modules"
|
||||
python_optimize "${ED}"usr/lib/calibre
|
||||
|
||||
newinitd "${FILESDIR}"/calibre-server.init calibre-server
|
||||
newconfd "${FILESDIR}"/calibre-server.conf calibre-server
|
||||
|
||||
bashcomp_alias calibre \
|
||||
lrfviewer \
|
||||
calibre-debug \
|
||||
ebook-meta \
|
||||
calibre-server \
|
||||
ebook-viewer \
|
||||
ebook-polish \
|
||||
fetch-ebook-metadata \
|
||||
lrf2lrs \
|
||||
ebook-convert \
|
||||
ebook-edit \
|
||||
calibre-smtp \
|
||||
ebook-device
|
||||
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
fdo-mime_desktop_database_update
|
||||
fdo-mime_mime_database_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
fdo-mime_desktop_database_update
|
||||
fdo-mime_mime_database_update
|
||||
}
|
@ -0,0 +1,37 @@
|
||||
From f335c8719b224d3ca7a967b6e91cebd5b26684fe Mon Sep 17 00:00:00 2001
|
||||
From: Zac Medico <zmedico@gentoo.org>
|
||||
Date: Sun, 23 Apr 2017 16:13:00 -0700
|
||||
Subject: [PATCH] Fix bounds error in lzxd_static_init
|
||||
|
||||
https://bugs.gentoo.org/show_bug.cgi?id=540596
|
||||
https://github.com/kovidgoyal/calibre/pull/650
|
||||
|
||||
This includes the changes from the following upstream commits:
|
||||
|
||||
https://github.com/kyz/libmspack/commit/6a42ddd1d472afeaf0f7da91e16b60ab2063fb92
|
||||
https://github.com/kyz/libmspack/commit/ce3cc03aa500dd9c0b6b820f9519f6b6b9dede05
|
||||
---
|
||||
src/calibre/utils/lzx/lzxd.c | 3 ++-
|
||||
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/calibre/utils/lzx/lzxd.c b/src/calibre/utils/lzx/lzxd.c
|
||||
index e683a9e..c531aaa 100644
|
||||
--- a/src/calibre/utils/lzx/lzxd.c
|
||||
+++ b/src/calibre/utils/lzx/lzxd.c
|
||||
@@ -357,11 +357,12 @@ static unsigned char extra_bits[51];
|
||||
static void lzxd_static_init(void) {
|
||||
int i, j;
|
||||
|
||||
- for (i = 0, j = 0; i < 51; i += 2) {
|
||||
+ for (i = 0, j = 0; i < 50; i += 2) {
|
||||
extra_bits[i] = j; /* 0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7... */
|
||||
extra_bits[i+1] = j;
|
||||
if ((i != 0) && (j < 17)) j++; /* 0,0,1,2,3,4...15,16,17,17,17,17... */
|
||||
}
|
||||
+ extra_bits[50] = 17;
|
||||
|
||||
for (i = 0, j = 0; i < 51; i++) {
|
||||
position_base[i] = j; /* 0,1,2,3,4,6,8,12,16,24,32,... */
|
||||
--
|
||||
2.10.2
|
||||
|
@ -0,0 +1,20 @@
|
||||
Workaround tty corruption in crystal.
|
||||
|
||||
Patch restores blocking mode of file desriptors
|
||||
in exchange of potential runtime deadlocks
|
||||
when dealing with stdio.
|
||||
|
||||
Reported-by: Renich Bon Ciric
|
||||
Bug: https://github.com/crystal-lang/crystal/issues/2065
|
||||
Bug: https://bugs.gentoo.org/616256
|
||||
diff --git a/src/compiler/crystal/stdio.cr b/src/compiler/crystal/stdio.cr
|
||||
new file mode 100644
|
||||
index 000000000..e65f65089
|
||||
--- /dev/null
|
||||
+++ b/src/compiler/crystal/stdio.cr
|
||||
@@ -0,0 +1,5 @@
|
||||
+module Crystal
|
||||
+ STDIN.blocking = true
|
||||
+ STDOUT.blocking=true
|
||||
+ STDERR.blocking = true
|
||||
+end
|
@ -1,3 +1,4 @@
|
||||
DIST glib-2.48.2.tar.xz 6408644 SHA256 f25e751589cb1a58826eac24fbd4186cda4518af772806b666a3f91f66e6d3f4 SHA512 2eac104eb2207d0a6488992e48069a34b417f51e141364f281ab7b0953a6de88be177b1c694dd9464a856c9a5d8021e3cf0193a8d9c5aaf6ea11f1f9ff743c43 WHIRLPOOL cba211000d5597e93d01113e5f2b6736e47f4daa00935a53af182b3304fef9a1ac25f78995c7a53cc1234261433a1bbd1ec751c87b556845a15da720af5b971b
|
||||
DIST glib-2.50.3.tar.xz 7589284 SHA256 82ee94bf4c01459b6b00cb9db0545c2237921e3060c0b74cff13fbc020cfd999 SHA512 ef35806c15170b6608445f255136c0bebd2d433adf903c2af2865f6a57b4f2fcfc1e4a7cea1a0dac48ff5fe26248fbf7886dba4a8d209506f0a94160df8fb7af WHIRLPOOL fc8effb457005a234ccb164d74026cec4af7f9a70eef0a8d58efebfacdcf0d7f7713042a9476e6a89e4effbdf4b0d59377811790557cc991cf6b397e5e984f93
|
||||
DIST glib-2.52.1.tar.xz 7676312 SHA256 948c26b817f2d77e2a6cdd5082c60a51bf5dea854890286a1d5d4ccde5ce586f SHA512 6f0475b4ee1078867671a79b1751674926ba1caa872cec3896e2830c61c3cde67972afa9f2d606a2b6705e9846222462b003c6e966a9b63982f3fc3fb58c4d37 WHIRLPOOL 95552f8f8adcbd20f2491cf34cbb60b507716a5be22a6331b23847814a6a4d335ca7f0ed71347c516233fe3814e1021869c391f6bbaadad2cc73690737764e90
|
||||
DIST pkg-config-0.28.tar.gz 1931203 SHA256 6b6eb31c6ec4421174578652c7e141fdaae2dabad1021f420d8713206ac1f845 SHA512 6eafa5ca77c5d44cd15f48457a5e96fcea2555b66d8e35ada5ab59864a0aa03d441e15f54ab9c6343693867b3b490f392c75b7d9312f024c9b7ec6a0194d8320 WHIRLPOOL db4ddb4ce61724e629931c5ffccb4d7a551b4dc0f4efed5a966822307e4b5a786adee5705dd80ec0a9aa32cb1af9ad9615e307360e131fc34688207216161486
|
||||
|
@ -0,0 +1,300 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
# Until bug #537330 glib is a reverse dependency of pkgconfig and, then
|
||||
# adding new dependencies end up making stage3 to grow. Every addition needs
|
||||
# then to be think very closely.
|
||||
|
||||
EAPI=6
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
# Completely useless with or without USE static-libs, people need to use
|
||||
# pkg-config
|
||||
GNOME2_LA_PUNT="yes"
|
||||
|
||||
inherit autotools bash-completion-r1 epunt-cxx flag-o-matic gnome2 libtool linux-info \
|
||||
multilib multilib-minimal pax-utils python-r1 toolchain-funcs versionator virtualx
|
||||
|
||||
DESCRIPTION="The GLib library of C routines"
|
||||
HOMEPAGE="http://www.gtk.org/"
|
||||
SRC_URI="${SRC_URI}
|
||||
https://pkgconfig.freedesktop.org/releases/pkg-config-0.28.tar.gz" # pkg.m4 for eautoreconf
|
||||
|
||||
LICENSE="LGPL-2+"
|
||||
SLOT="2"
|
||||
IUSE="dbus debug fam kernel_linux +mime selinux static-libs systemtap test utils xattr"
|
||||
REQUIRED_USE="
|
||||
utils? ( ${PYTHON_REQUIRED_USE} )
|
||||
test? ( ${PYTHON_REQUIRED_USE} )
|
||||
"
|
||||
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux"
|
||||
|
||||
# Added util-linux multilib dependency to have libmount support (which
|
||||
# is always turned on on linux systems, unless explicitly disabled, but
|
||||
# this ebuild does not do that anyway) (bug #599586)
|
||||
|
||||
RDEPEND="
|
||||
!<dev-util/gdbus-codegen-${PV}
|
||||
>=dev-libs/libpcre-8.13:3[${MULTILIB_USEDEP},static-libs?]
|
||||
>=virtual/libiconv-0-r1[${MULTILIB_USEDEP}]
|
||||
>=virtual/libffi-3.0.13-r1[${MULTILIB_USEDEP}]
|
||||
>=virtual/libintl-0-r2[${MULTILIB_USEDEP}]
|
||||
>=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}]
|
||||
kernel_linux? ( sys-apps/util-linux[${MULTILIB_USEDEP}] )
|
||||
selinux? ( >=sys-libs/libselinux-2.2.2-r5[${MULTILIB_USEDEP}] )
|
||||
xattr? ( >=sys-apps/attr-2.4.47-r1[${MULTILIB_USEDEP}] )
|
||||
fam? ( >=virtual/fam-0-r1[${MULTILIB_USEDEP}] )
|
||||
utils? (
|
||||
${PYTHON_DEPS}
|
||||
>=dev-util/gdbus-codegen-${PV}[${PYTHON_USEDEP}]
|
||||
virtual/libelf:0=
|
||||
)
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
app-text/docbook-xml-dtd:4.1.2
|
||||
>=dev-libs/libxslt-1.0
|
||||
>=sys-devel/gettext-0.11
|
||||
>=dev-util/gtk-doc-am-1.20
|
||||
systemtap? ( >=dev-util/systemtap-1.3 )
|
||||
test? (
|
||||
sys-devel/gdb
|
||||
${PYTHON_DEPS}
|
||||
>=dev-util/gdbus-codegen-${PV}[${PYTHON_USEDEP}]
|
||||
>=sys-apps/dbus-1.2.14 )
|
||||
!<dev-util/gtk-doc-1.15-r2
|
||||
"
|
||||
PDEPEND="!<gnome-base/gvfs-1.6.4-r990
|
||||
dbus? ( gnome-base/dconf )
|
||||
mime? ( x11-misc/shared-mime-info )
|
||||
"
|
||||
# shared-mime-info needed for gio/xdgmime, bug #409481
|
||||
# dconf is needed to be able to save settings, bug #498436
|
||||
# Earlier versions of gvfs do not work with glib
|
||||
|
||||
MULTILIB_CHOST_TOOLS=(
|
||||
/usr/bin/gio-querymodules$(get_exeext)
|
||||
)
|
||||
|
||||
pkg_setup() {
|
||||
if use kernel_linux ; then
|
||||
CONFIG_CHECK="~INOTIFY_USER"
|
||||
if use test ; then
|
||||
CONFIG_CHECK="~IPV6"
|
||||
WARNING_IPV6="Your kernel needs IPV6 support for running some tests, skipping them."
|
||||
fi
|
||||
linux-info_pkg_setup
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# Prevent build failure in stage3 where pkgconfig is not available, bug #481056
|
||||
mv -f "${WORKDIR}"/pkg-config-*/pkg.m4 "${S}"/m4macros/ || die
|
||||
|
||||
if use test; then
|
||||
# Disable tests requiring dev-util/desktop-file-utils when not installed, bug #286629, upstream bug #629163
|
||||
if ! has_version dev-util/desktop-file-utils ; then
|
||||
ewarn "Some tests will be skipped due dev-util/desktop-file-utils not being present on your system,"
|
||||
ewarn "think on installing it to get these tests run."
|
||||
sed -i -e "/appinfo\/associations/d" gio/tests/appinfo.c || die
|
||||
sed -i -e "/g_test_add_func/d" gio/tests/desktop-app-info.c || die
|
||||
fi
|
||||
|
||||
# gdesktopappinfo requires existing terminal (gnome-terminal or any
|
||||
# other), falling back to xterm if one doesn't exist
|
||||
if ! has_version x11-terms/xterm && ! has_version x11-terms/gnome-terminal ; then
|
||||
ewarn "Some tests will be skipped due to missing terminal program"
|
||||
sed -i -e "/appinfo\/launch/d" gio/tests/appinfo.c || die
|
||||
fi
|
||||
|
||||
# https://bugzilla.gnome.org/show_bug.cgi?id=722604
|
||||
sed -i -e "/timer\/stop/d" glib/tests/timer.c || die
|
||||
sed -i -e "/timer\/basic/d" glib/tests/timer.c || die
|
||||
|
||||
ewarn "Tests for search-utils have been skipped"
|
||||
sed -i -e "/search-utils/d" glib/tests/Makefile.am || die
|
||||
else
|
||||
# Don't build tests, also prevents extra deps, bug #512022
|
||||
sed -i -e 's/ tests//' {.,gio,glib}/Makefile.am || die
|
||||
fi
|
||||
|
||||
# gdbus-codegen is a separate package
|
||||
eapply "${FILESDIR}"/${PN}-2.50.0-external-gdbus-codegen.patch
|
||||
|
||||
# Leave python shebang alone - handled by python_replicate_script
|
||||
# We could call python_setup and give configure a valid --with-python
|
||||
# arg, but that would mean a build dep on python when USE=utils.
|
||||
sed -e '/${PYTHON}/d' \
|
||||
-i glib/Makefile.{am,in} || die
|
||||
|
||||
# Also needed to prevent cross-compile failures, see bug #267603
|
||||
eautoreconf
|
||||
|
||||
gnome2_src_prepare
|
||||
|
||||
epunt_cxx
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
# Avoid circular depend with dev-util/pkgconfig and
|
||||
# native builds (cross-compiles won't need pkg-config
|
||||
# in the target ROOT to work here)
|
||||
if ! tc-is-cross-compiler && ! $(tc-getPKG_CONFIG) --version >& /dev/null; then
|
||||
if has_version sys-apps/dbus; then
|
||||
export DBUS1_CFLAGS="-I/usr/include/dbus-1.0 -I/usr/$(get_libdir)/dbus-1.0/include"
|
||||
export DBUS1_LIBS="-ldbus-1"
|
||||
fi
|
||||
export LIBFFI_CFLAGS="-I$(echo /usr/$(get_libdir)/libffi-*/include)"
|
||||
export LIBFFI_LIBS="-lffi"
|
||||
export PCRE_CFLAGS=" " # test -n "$PCRE_CFLAGS" needs to pass
|
||||
export PCRE_LIBS="-lpcre"
|
||||
fi
|
||||
|
||||
# These configure tests don't work when cross-compiling.
|
||||
if tc-is-cross-compiler ; then
|
||||
# https://bugzilla.gnome.org/show_bug.cgi?id=756473
|
||||
case ${CHOST} in
|
||||
hppa*|metag*) export glib_cv_stack_grows=yes ;;
|
||||
*) export glib_cv_stack_grows=no ;;
|
||||
esac
|
||||
# https://bugzilla.gnome.org/show_bug.cgi?id=756474
|
||||
export glib_cv_uscore=no
|
||||
# https://bugzilla.gnome.org/show_bug.cgi?id=756475
|
||||
export ac_cv_func_posix_get{pwuid,grgid}_r=yes
|
||||
fi
|
||||
|
||||
local myconf
|
||||
|
||||
case "${CHOST}" in
|
||||
*-mingw*) myconf="${myconf} --with-threads=win32" ;;
|
||||
*) myconf="${myconf} --with-threads=posix" ;;
|
||||
esac
|
||||
|
||||
# libelf used only by the gresource bin
|
||||
ECONF_SOURCE="${S}" gnome2_src_configure ${myconf} \
|
||||
$(usex debug --enable-debug=yes ' ') \
|
||||
$(use_enable xattr) \
|
||||
$(use_enable fam) \
|
||||
$(use_enable kernel_linux libmount) \
|
||||
$(use_enable selinux) \
|
||||
$(use_enable static-libs static) \
|
||||
$(use_enable systemtap dtrace) \
|
||||
$(use_enable systemtap systemtap) \
|
||||
$(multilib_native_use_enable utils libelf) \
|
||||
--disable-compile-warnings \
|
||||
--enable-man \
|
||||
--with-pcre=system \
|
||||
--with-xml-catalog="${EPREFIX}/etc/xml/catalog"
|
||||
|
||||
if multilib_is_native_abi; then
|
||||
local d
|
||||
for d in glib gio gobject; do
|
||||
ln -s "${S}"/docs/reference/${d}/html docs/reference/${d}/html || die
|
||||
done
|
||||
fi
|
||||
}
|
||||
|
||||
multilib_src_test() {
|
||||
export XDG_CONFIG_DIRS=/etc/xdg
|
||||
export XDG_DATA_DIRS=/usr/local/share:/usr/share
|
||||
export G_DBUS_COOKIE_SHA1_KEYRING_DIR="${T}/temp"
|
||||
export LC_TIME=C # bug #411967
|
||||
unset GSETTINGS_BACKEND # bug #596380
|
||||
python_setup
|
||||
|
||||
# Related test is a bit nitpicking
|
||||
mkdir "$G_DBUS_COOKIE_SHA1_KEYRING_DIR"
|
||||
chmod 0700 "$G_DBUS_COOKIE_SHA1_KEYRING_DIR"
|
||||
|
||||
# Hardened: gdb needs this, bug #338891
|
||||
if host-is-pax ; then
|
||||
pax-mark -mr "${BUILD_DIR}"/tests/.libs/assert-msg-test \
|
||||
|| die "Hardened adjustment failed"
|
||||
fi
|
||||
|
||||
# Need X for dbus-launch session X11 initialization
|
||||
virtx emake check
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
gnome2_src_install completiondir="$(get_bashcompdir)"
|
||||
keepdir /usr/$(get_libdir)/gio/modules
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
einstalldocs
|
||||
|
||||
if use utils ; then
|
||||
python_replicate_script "${ED}"/usr/bin/gtester-report
|
||||
else
|
||||
rm "${ED}usr/bin/gtester-report"
|
||||
rm "${ED}usr/share/man/man1/gtester-report.1"
|
||||
fi
|
||||
|
||||
# Do not install charset.alias even if generated, leave it to libiconv
|
||||
rm -f "${ED}/usr/lib/charset.alias"
|
||||
|
||||
# Don't install gdb python macros, bug 291328
|
||||
rm -rf "${ED}/usr/share/gdb/" "${ED}/usr/share/glib-2.0/gdb/"
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
gnome2_pkg_preinst
|
||||
|
||||
# Make gschemas.compiled belong to glib alone
|
||||
local cache="usr/share/glib-2.0/schemas/gschemas.compiled"
|
||||
|
||||
if [[ -e ${EROOT}${cache} ]]; then
|
||||
cp "${EROOT}"${cache} "${ED}"/${cache} || die
|
||||
else
|
||||
touch "${ED}"/${cache} || die
|
||||
fi
|
||||
|
||||
multilib_pkg_preinst() {
|
||||
# Make giomodule.cache belong to glib alone
|
||||
local cache="usr/$(get_libdir)/gio/modules/giomodule.cache"
|
||||
|
||||
if [[ -e ${EROOT}${cache} ]]; then
|
||||
cp "${EROOT}"${cache} "${ED}"/${cache} || die
|
||||
else
|
||||
touch "${ED}"/${cache} || die
|
||||
fi
|
||||
}
|
||||
|
||||
# Don't run the cache ownership when cross-compiling, as it would end up with an empty cache
|
||||
# file due to inability to create it and GIO might not look at any of the modules there
|
||||
if ! tc-is-cross-compiler ; then
|
||||
multilib_foreach_abi multilib_pkg_preinst
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# force (re)generation of gschemas.compiled
|
||||
GNOME2_ECLASS_GLIB_SCHEMAS="force"
|
||||
|
||||
gnome2_pkg_postinst
|
||||
|
||||
multilib_pkg_postinst() {
|
||||
gnome2_giomodule_cache_update \
|
||||
|| die "Update GIO modules cache failed (for ${ABI})"
|
||||
}
|
||||
if ! tc-is-cross-compiler ; then
|
||||
multilib_foreach_abi multilib_pkg_postinst
|
||||
else
|
||||
ewarn "Updating of GIO modules cache skipped due to cross-compilation."
|
||||
ewarn "You might want to run gio-querymodules manually on the target for"
|
||||
ewarn "your final image for performance reasons and re-run it when packages"
|
||||
ewarn "installing GIO modules get upgraded or added to the image."
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
gnome2_pkg_postrm
|
||||
|
||||
if [[ -z ${REPLACED_BY_VERSION} ]]; then
|
||||
multilib_pkg_postrm() {
|
||||
rm -f "${EROOT}"usr/$(get_libdir)/gio/modules/giomodule.cache
|
||||
}
|
||||
multilib_foreach_abi multilib_pkg_postrm
|
||||
rm -f "${EROOT}"usr/share/glib-2.0/schemas/gschemas.compiled
|
||||
fi
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST gobject-introspection-1.48.0.tar.xz 1371308 SHA256 fa275aaccdbfc91ec0bc9a6fd0562051acdba731e7d584b64a277fec60e75877 SHA512 62b23fd94e19fd7f1557c8bdd045b4ec19b9a39c55ec4b4a75b817fc97f936c6fdbf89fa3ad09ffa707afb542b1c644b718ccaaefe194f681ad40c08d5c53975 WHIRLPOOL c284623cf5b0f6edc4d543fbbbc6b31b2e5ceb119b2fb4da1dbb052673ba79eeadba997f34fcd191f42e320cbd697733986d96ef3c4d8655765d7e586f7dbd54
|
||||
DIST gobject-introspection-1.50.0.tar.xz 1415700 SHA256 1c6597c666f543c70ef3d7c893ab052968afae620efdc080c36657f4226337c5 SHA512 cb108cf3d49743e1686fe4ae99f2360799bc8825ad97bf0b97e097b3f89e2771079593de0f497a9e5b9cff892f6fbf870834a6c4d13f11bcde99162e9388ecfa WHIRLPOOL 6147c2608c911020800471c30e6c754385efd61fe9f875bb7fad7d161e73cb857fa37c810e66bf0cf16a43aca1ecf6d2e46a6cde90800970f303c7721fdc5edb
|
||||
DIST gobject-introspection-1.52.1.tar.xz 1384292 SHA256 2ed0c38d52fe1aa6fc4def0c868fe481cb87b532fc694756b26d6cfab29faff4 SHA512 878653ffa80c064c73453ea2878a977e52f0d6a0b2123bee8c3429379366f9da3e9fd991fad0dda170d74e4241314ea6c5120f5988e68fad4bfe9c333d11389f WHIRLPOOL 7489998d8ee9bcfbd576cf7d2e84e9bf9f531ef43bad5685c21433189dc93d815e0faff5ad8c01bc0475618eae92732ad8aadaca7f997f75b2144cb966dd1cc5
|
||||
|
@ -0,0 +1,33 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
GNOME_ORG_MODULE="gobject-introspection"
|
||||
|
||||
inherit gnome.org
|
||||
|
||||
DESCRIPTION="Build infrastructure for GObject Introspection"
|
||||
HOMEPAGE="https://wiki.gnome.org/Projects/GObjectIntrospection"
|
||||
|
||||
LICENSE="HPND"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="!<${CATEGORY}/${PN/-common}-${PV}"
|
||||
# Use !<${PV} because mixing gobject-introspection with different version of -common can cause issues like:
|
||||
# https://forums.gentoo.org/viewtopic-p-7421930.html
|
||||
|
||||
src_configure() { :; }
|
||||
|
||||
src_compile() { :; }
|
||||
|
||||
src_install() {
|
||||
dodir /usr/share/aclocal
|
||||
insinto /usr/share/aclocal
|
||||
doins m4/introspection.m4
|
||||
|
||||
dodir /usr/share/gobject-introspection-1.0
|
||||
insinto /usr/share/gobject-introspection-1.0
|
||||
doins Makefile.introspection
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST gobject-introspection-1.48.0.tar.xz 1371308 SHA256 fa275aaccdbfc91ec0bc9a6fd0562051acdba731e7d584b64a277fec60e75877 SHA512 62b23fd94e19fd7f1557c8bdd045b4ec19b9a39c55ec4b4a75b817fc97f936c6fdbf89fa3ad09ffa707afb542b1c644b718ccaaefe194f681ad40c08d5c53975 WHIRLPOOL c284623cf5b0f6edc4d543fbbbc6b31b2e5ceb119b2fb4da1dbb052673ba79eeadba997f34fcd191f42e320cbd697733986d96ef3c4d8655765d7e586f7dbd54
|
||||
DIST gobject-introspection-1.50.0.tar.xz 1415700 SHA256 1c6597c666f543c70ef3d7c893ab052968afae620efdc080c36657f4226337c5 SHA512 cb108cf3d49743e1686fe4ae99f2360799bc8825ad97bf0b97e097b3f89e2771079593de0f497a9e5b9cff892f6fbf870834a6c4d13f11bcde99162e9388ecfa WHIRLPOOL 6147c2608c911020800471c30e6c754385efd61fe9f875bb7fad7d161e73cb857fa37c810e66bf0cf16a43aca1ecf6d2e46a6cde90800970f303c7721fdc5edb
|
||||
DIST gobject-introspection-1.52.1.tar.xz 1384292 SHA256 2ed0c38d52fe1aa6fc4def0c868fe481cb87b532fc694756b26d6cfab29faff4 SHA512 878653ffa80c064c73453ea2878a977e52f0d6a0b2123bee8c3429379366f9da3e9fd991fad0dda170d74e4241314ea6c5120f5988e68fad4bfe9c333d11389f WHIRLPOOL 7489998d8ee9bcfbd576cf7d2e84e9bf9f531ef43bad5685c21433189dc93d815e0faff5ad8c01bc0475618eae92732ad8aadaca7f997f75b2144cb966dd1cc5
|
||||
|
@ -0,0 +1,70 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
PYTHON_COMPAT=( python{2_7,3_4,3_5} )
|
||||
PYTHON_REQ_USE="xml"
|
||||
|
||||
inherit gnome2 python-single-r1 toolchain-funcs versionator
|
||||
|
||||
DESCRIPTION="Introspection system for GObject-based libraries"
|
||||
HOMEPAGE="https://wiki.gnome.org/Projects/GObjectIntrospection"
|
||||
|
||||
LICENSE="LGPL-2+ GPL-2+"
|
||||
SLOT="0"
|
||||
IUSE="cairo doctool test"
|
||||
REQUIRED_USE="
|
||||
${PYTHON_REQUIRED_USE}
|
||||
test? ( cairo )
|
||||
"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
|
||||
# virtual/pkgconfig needed at runtime, bug #505408
|
||||
# We force glib and g-i to be in sync by this way as explained in bug #518424
|
||||
RDEPEND="
|
||||
>=dev-libs/gobject-introspection-common-${PV}
|
||||
>=dev-libs/glib-2.$(get_version_component_range 2):2
|
||||
doctool? ( dev-python/mako )
|
||||
virtual/libffi:=
|
||||
virtual/pkgconfig
|
||||
!<dev-lang/vala-0.20.0
|
||||
${PYTHON_DEPS}
|
||||
"
|
||||
# Wants real bison, not virtual/yacc
|
||||
DEPEND="${RDEPEND}
|
||||
>=dev-util/gtk-doc-am-1.19
|
||||
sys-devel/bison
|
||||
sys-devel/flex
|
||||
"
|
||||
# PDEPEND to avoid circular dependencies, bug #391213
|
||||
PDEPEND="cairo? ( x11-libs/cairo[glib] )"
|
||||
|
||||
pkg_setup() {
|
||||
python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
if ! has_version "x11-libs/cairo[glib]"; then
|
||||
# Bug #391213: enable cairo-gobject support even if it's not installed
|
||||
# We only PDEPEND on cairo to avoid circular dependencies
|
||||
export CAIRO_LIBS="-lcairo -lcairo-gobject"
|
||||
export CAIRO_CFLAGS="-I${EPREFIX}/usr/include/cairo"
|
||||
fi
|
||||
|
||||
# To prevent crosscompiling problems, bug #414105
|
||||
gnome2_src_configure \
|
||||
--disable-static \
|
||||
CC="$(tc-getCC)" \
|
||||
YACC="$(type -p yacc)" \
|
||||
$(use_with cairo) \
|
||||
$(use_enable doctool)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
gnome2_src_install
|
||||
|
||||
# Prevent collision with gobject-introspection-common
|
||||
rm -v "${ED}"usr/share/aclocal/introspection.m4 \
|
||||
"${ED}"usr/share/gobject-introspection-1.0/Makefile.introspection || die
|
||||
rmdir "${ED}"usr/share/aclocal || die
|
||||
}
|
@ -0,0 +1,36 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
DIST_AUTHOR=FLORA
|
||||
DIST_VERSION=0.05
|
||||
inherit perl-module virtualx
|
||||
|
||||
DESCRIPTION="A perl interface to the notification library"
|
||||
|
||||
LICENSE="LGPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="test"
|
||||
|
||||
RDEPEND="
|
||||
dev-perl/glib-perl
|
||||
dev-perl/Gtk2
|
||||
>=x11-libs/libnotify-0.7
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-perl/ExtUtils-Depends
|
||||
dev-perl/ExtUtils-PkgConfig
|
||||
test? ( dev-perl/Test-Exception )
|
||||
"
|
||||
|
||||
PATCHES=( "${FILESDIR}"/${PN}-0.05-libnotify.patch )
|
||||
|
||||
PERL_RM_FILES=( t/notification.t )
|
||||
# the test dies if no notification daemon is present...
|
||||
|
||||
src_test() {
|
||||
# bug 416729
|
||||
virtx perl-module_src_test
|
||||
}
|
@ -0,0 +1,76 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
inherit bash-completion-r1 eutils toolchain-funcs
|
||||
|
||||
MY_PV="${PV/_p/_r}"
|
||||
MY_P=${PN}-${MY_PV}
|
||||
|
||||
DESCRIPTION="Android platform tools (adb, fastboot, and mkbootimg)"
|
||||
HOMEPAGE="https://android.googlesource.com/platform/system/core.git/"
|
||||
# Downloading git tarballs generated by android.googlesource.com
|
||||
# Archlinux package contains patches and build script generation mechanism.
|
||||
SRC_URI="https://git.archlinux.org/svntogit/community.git/snapshot/community-6a03c4736c9734f5ac3d6b5b912605690a6eaa5f.tar.gz -> ${MY_P}-arch.tar.gz
|
||||
https://github.com/android/platform_system_core/archive/android-${MY_PV}.tar.gz -> ${MY_P}-core.tar.gz
|
||||
mirror://gentoo/${MY_P}-extras.tar.gz
|
||||
mirror://gentoo/${MY_P}-libselinux.tar.gz
|
||||
mirror://gentoo/${MY_P}-f2fs-tools.tar.gz"
|
||||
|
||||
# The entire source code is Apache-2.0, except for fastboot which is BSD-2.
|
||||
LICENSE="Apache-2.0 BSD-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86 ~arm-linux ~x86-linux"
|
||||
IUSE="libressl"
|
||||
|
||||
RDEPEND="sys-libs/zlib:=
|
||||
!libressl? ( dev-libs/openssl:0= )
|
||||
libressl? ( dev-libs/libressl:0= )
|
||||
dev-libs/libpcre"
|
||||
# dev-lang/ruby is necessary for build script generation.
|
||||
DEPEND="${RDEPEND}
|
||||
dev-lang/ruby:*"
|
||||
|
||||
S=${WORKDIR}
|
||||
|
||||
src_unpack() {
|
||||
local dir filename
|
||||
for filename in ${A}; do
|
||||
if [[ ${filename} =~ ^${MY_P}-(.*)\.tar\.gz$ ]]; then
|
||||
dir=${BASH_REMATCH[1]}
|
||||
mkdir -p "${dir}" || die
|
||||
pushd "${dir}" >/dev/null
|
||||
unpack "${filename}"
|
||||
popd > /dev/null
|
||||
else
|
||||
die "unrecognized file in \${A}: ${filename}"
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
mv core/*/* core/ || die
|
||||
epatch arch/*/trunk/fix_build.patch
|
||||
cp arch/*/trunk/generate_build.rb ./ || die
|
||||
sed -e 's|^#include <sys/cdefs.h>$|/*\0*/|' \
|
||||
-e 's|^__BEGIN_DECLS$|#ifdef __cplusplus\nextern "C" {\n#endif|' \
|
||||
-e 's|^__END_DECLS$|#ifdef __cplusplus\n}\n#endif|' \
|
||||
-i extras/ext4_utils/sha1.{c,h} || die #580686
|
||||
default
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
chmod +x ./generate_build.rb || die
|
||||
./generate_build.rb > build.sh || die
|
||||
chmod +x build.sh || die
|
||||
./build.sh || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin adb
|
||||
dobin fastboot
|
||||
dobin mkbootimg
|
||||
# Omitting, app-shells/bash-completion contains completion for adb
|
||||
#newbashcomp arch/*/trunk/bash_completion.adb adb
|
||||
newbashcomp arch/*/trunk/bash_completion.fastboot fastboot
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST glib-2.48.2.tar.xz 6408644 SHA256 f25e751589cb1a58826eac24fbd4186cda4518af772806b666a3f91f66e6d3f4 SHA512 2eac104eb2207d0a6488992e48069a34b417f51e141364f281ab7b0953a6de88be177b1c694dd9464a856c9a5d8021e3cf0193a8d9c5aaf6ea11f1f9ff743c43 WHIRLPOOL cba211000d5597e93d01113e5f2b6736e47f4daa00935a53af182b3304fef9a1ac25f78995c7a53cc1234261433a1bbd1ec751c87b556845a15da720af5b971b
|
||||
DIST glib-2.50.3.tar.xz 7589284 SHA256 82ee94bf4c01459b6b00cb9db0545c2237921e3060c0b74cff13fbc020cfd999 SHA512 ef35806c15170b6608445f255136c0bebd2d433adf903c2af2865f6a57b4f2fcfc1e4a7cea1a0dac48ff5fe26248fbf7886dba4a8d209506f0a94160df8fb7af WHIRLPOOL fc8effb457005a234ccb164d74026cec4af7f9a70eef0a8d58efebfacdcf0d7f7713042a9476e6a89e4effbdf4b0d59377811790557cc991cf6b397e5e984f93
|
||||
DIST glib-2.52.1.tar.xz 7676312 SHA256 948c26b817f2d77e2a6cdd5082c60a51bf5dea854890286a1d5d4ccde5ce586f SHA512 6f0475b4ee1078867671a79b1751674926ba1caa872cec3896e2830c61c3cde67972afa9f2d606a2b6705e9846222462b003c6e966a9b63982f3fc3fb58c4d37 WHIRLPOOL 95552f8f8adcbd20f2491cf34cbb60b507716a5be22a6331b23847814a6a4d335ca7f0ed71347c516233fe3814e1021869c391f6bbaadad2cc73690737764e90
|
||||
|
@ -0,0 +1,46 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="5"
|
||||
GNOME_ORG_MODULE="glib"
|
||||
PYTHON_COMPAT=( python{2_7,3_4,3_5} )
|
||||
PYTHON_REQ_USE="xml"
|
||||
|
||||
inherit eutils gnome.org distutils-r1
|
||||
|
||||
DESCRIPTION="GDBus code and documentation generator"
|
||||
HOMEPAGE="http://www.gtk.org/"
|
||||
|
||||
LICENSE="LGPL-2+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~x64-macos ~x86-macos"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="${PYTHON_DEPS}"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
# To prevent circular dependencies with glib[test]
|
||||
PDEPEND=">=dev-libs/glib-${PV}:2"
|
||||
|
||||
S="${WORKDIR}/glib-${PV}/gio/gdbus-2.0/codegen"
|
||||
|
||||
python_prepare_all() {
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-2.40.0-sitedir.patch"
|
||||
)
|
||||
distutils-r1_python_prepare_all
|
||||
|
||||
sed -e 's:#!@PYTHON@:#!/usr/bin/env python:' gdbus-codegen.in > gdbus-codegen || die
|
||||
cp "${FILESDIR}/setup.py-2.32.4" setup.py || die "cp failed"
|
||||
sed -e "s/@PV@/${PV}/" -i setup.py || die "sed setup.py failed"
|
||||
}
|
||||
|
||||
src_test() {
|
||||
einfo "Skipping tests. This package is tested by dev-libs/glib"
|
||||
einfo "when merged with FEATURES=test"
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
distutils-r1_python_install_all # no-op, but prevents QA warning
|
||||
doman "${WORKDIR}/glib-${PV}/docs/reference/gio/gdbus-codegen.1"
|
||||
}
|
@ -0,0 +1,140 @@
|
||||
This should fix bug 7338, but the related commits were backported to
|
||||
the 3.4 branch as part of SpamAssassin bug 7231 (comment 13).
|
||||
|
||||
--- a/lib/Mail/SpamAssassin/Dns.pm 2017/04/16 06:19:30 1791572
|
||||
+++ b/lib/Mail/SpamAssassin/Dns.pm 2017/04/16 07:28:59 1791573
|
||||
@@ -171,7 +171,7 @@
|
||||
if (substr($rule, 0, 2) eq "__") {
|
||||
# don't bother with meta rules
|
||||
} elsif ($answer->type eq 'TXT') {
|
||||
- # txtdata returns a non- zone-file-format encoded result, unlike rdatastr;
|
||||
+ # txtdata returns a non- zone-file-format encoded result, unlike rdstring;
|
||||
# avoid space-separated RDATA <character-string> fields if possible,
|
||||
# txtdata provides a list of strings in a list context since Net::DNS 0.69
|
||||
$log = join('',$answer->txtdata);
|
||||
@@ -215,11 +215,13 @@
|
||||
|
||||
my $qname = $question->qname;
|
||||
|
||||
- # txtdata returns a non- zone-file-format encoded result, unlike rdatastr;
|
||||
+ # txtdata returns a non- zone-file-format encoded result, unlike rdstring;
|
||||
# avoid space-separated RDATA <character-string> fields if possible,
|
||||
# txtdata provides a list of strings in a list context since Net::DNS 0.69
|
||||
#
|
||||
+ # rdatastr() is historical/undocumented, use rdstring() since Net::DNS 0.69
|
||||
my $rdatastr = $answer->UNIVERSAL::can('txtdata') ? join('',$answer->txtdata)
|
||||
+ : $answer->UNIVERSAL::can('rdstring') ? $answer->rdstring
|
||||
: $answer->rdatastr;
|
||||
if (defined $qname && defined $rdatastr) {
|
||||
my $qclass = $question->qclass;
|
||||
@@ -267,8 +269,13 @@
|
||||
my $answ_type = $answer->type;
|
||||
# TODO: there are some CNAME returns that might be useful
|
||||
next if ($answ_type ne 'A' && $answ_type ne 'TXT');
|
||||
- # skip any A record that isn't on 127/8
|
||||
- next if ($answ_type eq 'A' && $answer->rdatastr !~ /^127\./);
|
||||
+ if ($answ_type eq 'A') {
|
||||
+ # Net::DNS::RR::A::address() is available since Net::DNS 0.69
|
||||
+ my $ip_address = $answer->UNIVERSAL::can('address') ? $answer->address
|
||||
+ : $answer->rdatastr;
|
||||
+ # skip any A record that isn't on 127.0.0.0/8
|
||||
+ next if $ip_address !~ /^127\./;
|
||||
+ }
|
||||
for my $rule (@{$rules}) {
|
||||
$self->dnsbl_hit($rule, $question, $answer);
|
||||
}
|
||||
@@ -284,11 +291,13 @@
|
||||
sub process_dnsbl_set {
|
||||
my ($self, $set, $question, $answer) = @_;
|
||||
|
||||
- # txtdata returns a non- zone-file-format encoded result, unlike rdatastr;
|
||||
+ # txtdata returns a non- zone-file-format encoded result, unlike rdstring;
|
||||
# avoid space-separated RDATA <character-string> fields if possible,
|
||||
# txtdata provides a list of strings in a list context since Net::DNS 0.69
|
||||
#
|
||||
- my $rdatastr = $answer->UNIVERSAL::can('txtdata') ? join('',$answer->txtdata)
|
||||
+ # rdatastr() is historical/undocumented, use rdstring() since Net::DNS 0.69
|
||||
+ my $rdatastr = $answer->UNIVERSAL::can('txtdata') ? join('',$answer->txtdata)
|
||||
+ : $answer->UNIVERSAL::can('rdstring') ? $answer->rdstring
|
||||
: $answer->rdatastr;
|
||||
|
||||
while (my ($subtest, $rule) = each %{ $self->{dnspost}->{$set} }) {
|
||||
--- a/lib/Mail/SpamAssassin/Plugin/AskDNS.pm 2017/04/16 06:19:30 1791572
|
||||
+++ b/lib/Mail/SpamAssassin/Plugin/AskDNS.pm 2017/04/16 07:28:59 1791573
|
||||
@@ -140,7 +140,7 @@
|
||||
multiple character-strings (as defined in Section 3.3 of [RFC1035]), these
|
||||
strings are concatenated with no delimiters before comparing the result
|
||||
to the filtering string. This follows requirements of several documents,
|
||||
-such as RFC 5518, RFC 4408, RFC 4871, RFC 5617. Examples of a plain text
|
||||
+such as RFC 5518, RFC 7208, RFC 4871, RFC 5617. Examples of a plain text
|
||||
filtering parameter: "127.0.0.1", "transaction", 'list' .
|
||||
|
||||
A regular expression follows a familiar perl syntax like /.../ or m{...}
|
||||
@@ -539,7 +539,7 @@
|
||||
@answer = ( undef );
|
||||
}
|
||||
|
||||
- # NOTE: $rr->rdatastr returns the result encoded in a DNS zone file
|
||||
+ # NOTE: $rr->rdstring returns the result encoded in a DNS zone file
|
||||
# format, i.e. enclosed in double quotes if a result contains whitespace
|
||||
# (or other funny characters), and may use \DDD encoding or \X quoting as
|
||||
# per RFC 1035. Using $rr->txtdata instead avoids this unnecessary encoding
|
||||
@@ -566,19 +566,26 @@
|
||||
# special case, no answer records, only rcode can be tested
|
||||
} else {
|
||||
$rr_type = uc $rr->type;
|
||||
- if ($rr->UNIVERSAL::can('txtdata')) { # TXT, SPF
|
||||
- # join with no intervening spaces, as per RFC 5518
|
||||
+ if ($rr_type eq 'A') {
|
||||
+ # Net::DNS::RR::A::address() is available since Net::DNS 0.69
|
||||
+ $rr_rdatastr = $rr->UNIVERSAL::can('address') ? $rr->address
|
||||
+ : $rr->rdatastr;
|
||||
+ if ($rr_rdatastr =~ m/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\z/) {
|
||||
+ $rdatanum = Mail::SpamAssassin::Util::my_inet_aton($rr_rdatastr);
|
||||
+ }
|
||||
+
|
||||
+ } elsif ($rr->UNIVERSAL::can('txtdata')) {
|
||||
+ # TXT, SPF: join with no intervening spaces, as per RFC 5518
|
||||
if ($txtdata_can_provide_a_list || $rr_type ne 'TXT') {
|
||||
$rr_rdatastr = join('', $rr->txtdata); # txtdata() in list context!
|
||||
} else { # char_str_list() is only available for TXT records
|
||||
$rr_rdatastr = join('', $rr->char_str_list); # historical
|
||||
}
|
||||
} else {
|
||||
- $rr_rdatastr = $rr->rdatastr;
|
||||
- if ($rr_type eq 'A' &&
|
||||
- $rr_rdatastr =~ m/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\z/) {
|
||||
- $rdatanum = Mail::SpamAssassin::Util::my_inet_aton($rr_rdatastr);
|
||||
- }
|
||||
+ # rdatastr() is historical, use rdstring() since Net::DNS 0.69
|
||||
+ $rr_rdatastr = $rr->UNIVERSAL::can('rdstring') ? $rr->rdstring
|
||||
+ : $rr->rdatastr;
|
||||
+ utf8::encode($rr_rdatastr) if utf8::is_utf8($rr_rdatastr);
|
||||
}
|
||||
# dbg("askdns: received rr type %s, data: %s", $rr_type, $rr_rdatastr);
|
||||
}
|
||||
--- a/lib/Mail/SpamAssassin/Plugin/URIDNSBL.pm 2017/04/16 06:19:30 1791572
|
||||
+++ b/lib/Mail/SpamAssassin/Plugin/URIDNSBL.pm 2017/04/16 07:28:59 1791573
|
||||
@@ -1009,10 +1009,9 @@
|
||||
dbg("uridnsbl: complete_a_lookup aborted %s", $ent->{key});
|
||||
return;
|
||||
}
|
||||
-
|
||||
dbg("uridnsbl: complete_a_lookup %s", $ent->{key});
|
||||
- my @answer = $pkt->answer;
|
||||
my $j = 0;
|
||||
+ my @answer = $pkt->answer;
|
||||
foreach my $rr (@answer) {
|
||||
$j++;
|
||||
my $str = $rr->string;
|
||||
@@ -1099,7 +1098,9 @@
|
||||
my $rr_type = $rr->type;
|
||||
|
||||
if ($rr_type eq 'A') {
|
||||
- $rdatastr = $rr->rdatastr;
|
||||
+ # Net::DNS::RR::A::address() is available since Net::DNS 0.69
|
||||
+ $rdatastr = $rr->UNIVERSAL::can('address') ? $rr->address
|
||||
+ : $rr->rdatastr;
|
||||
if ($rdatastr =~ m/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/) {
|
||||
$rdatanum = Mail::SpamAssassin::Util::my_inet_aton($rdatastr);
|
||||
}
|
@ -1 +1 @@
|
||||
Sun, 23 Apr 2017 20:39:15 +0000
|
||||
Mon, 24 Apr 2017 05:09:15 +0000
|
||||
|
@ -1 +1 @@
|
||||
Sun, 23 Apr 2017 20:39:15 +0000
|
||||
Mon, 24 Apr 2017 05:09:15 +0000
|
||||
|
File diff suppressed because one or more lines are too long
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue