parent
8de558d5b7
commit
a726784735
@ -1,3 +1,4 @@
|
|||||||
DIST clamav-0.97.5.tar.gz 14754465 SHA256 db6c5e1a5ec8ca0b8006cf82661d3158d3365ba1b4bc14c03c5d0bca89a93c0d SHA512 618ef2f1d256f2e3cd76beaf92b76d9df0963d449c2d80885ed6039f4edd59ddf9a73ebe0b93549c62264d7df4ac918d306d631f8c0b1df8e47a7e763550f1cc WHIRLPOOL 7d148323a4510acfe706a17f27c12bd808a013aa91807257b03af83e4a6daeb619962243689eee5614ce2922dfa39d21ae357d2509617be4642f162ac91d5d7e
|
DIST clamav-0.97.5.tar.gz 14754465 SHA256 db6c5e1a5ec8ca0b8006cf82661d3158d3365ba1b4bc14c03c5d0bca89a93c0d SHA512 618ef2f1d256f2e3cd76beaf92b76d9df0963d449c2d80885ed6039f4edd59ddf9a73ebe0b93549c62264d7df4ac918d306d631f8c0b1df8e47a7e763550f1cc WHIRLPOOL 7d148323a4510acfe706a17f27c12bd808a013aa91807257b03af83e4a6daeb619962243689eee5614ce2922dfa39d21ae357d2509617be4642f162ac91d5d7e
|
||||||
DIST clamav-0.97.6.tar.gz 14765896 SHA256 a15a2bb9200ac9f2c6f1c5e1072ac265a2c4fe5a9be4663b47d076afdfa123f8 SHA512 f897f4c70c7555d1ede480b089f73020501bceb1d5de568785b842d04f35ee0771213b8050ac6159dde1f19816ab9a8373e8bcb419106eeeb701a386932d96e7 WHIRLPOOL 1a4916592843a3568ebef78663f76e8eba96b7d561bd61199ad1e15b239fc4c2bb3c25dcc49fad713cd09fb221ab83e9e7b1ba923ed71220943eec78dc04fb16
|
DIST clamav-0.97.6.tar.gz 14765896 SHA256 a15a2bb9200ac9f2c6f1c5e1072ac265a2c4fe5a9be4663b47d076afdfa123f8 SHA512 f897f4c70c7555d1ede480b089f73020501bceb1d5de568785b842d04f35ee0771213b8050ac6159dde1f19816ab9a8373e8bcb419106eeeb701a386932d96e7 WHIRLPOOL 1a4916592843a3568ebef78663f76e8eba96b7d561bd61199ad1e15b239fc4c2bb3c25dcc49fad713cd09fb221ab83e9e7b1ba923ed71220943eec78dc04fb16
|
||||||
DIST clamav-0.97.7.tar.gz 14598481 SHA256 8527754e7eb235317e37a50706d94d3fc9d880fd0bf6f3cb83757d64a720e9ff SHA512 92120250afb882b7fb9f956f2095797f8e3c93076a229967123261c907d9b4436cda6cf2d18b2c61cec8b33afeacba9c2701ad3322aa3316163fe4f36f7a7bc7 WHIRLPOOL 1f3fb155ad4e35ef1ea3835941e40363f9da9c37ab46fe1b9d44e29add6fee9d775e1f5858648a6229f9d0f41c40ed4ade726a4fc044156d208bf10f6cc8c705
|
DIST clamav-0.97.7.tar.gz 14598481 SHA256 8527754e7eb235317e37a50706d94d3fc9d880fd0bf6f3cb83757d64a720e9ff SHA512 92120250afb882b7fb9f956f2095797f8e3c93076a229967123261c907d9b4436cda6cf2d18b2c61cec8b33afeacba9c2701ad3322aa3316163fe4f36f7a7bc7 WHIRLPOOL 1f3fb155ad4e35ef1ea3835941e40363f9da9c37ab46fe1b9d44e29add6fee9d775e1f5858648a6229f9d0f41c40ed4ade726a4fc044156d208bf10f6cc8c705
|
||||||
|
DIST clamav-0.97.8.tar.gz 14609966 SHA256 d872bdfd692d440bc2ade2f4e5a7befc37feb8885cd81adfb6346a8214aafc12 SHA512 e3a80bbfc90922f7f49521d1ab53ec63fb948a42d448ecaa933023cbb256f35e5b695305bd2d56480ee1f94ac93703d10aa4193566c521a1fa62f2c0e1019fda WHIRLPOOL b0ddc29edd096007abc0183400f2b3ee54cf87f13bb2eab2388c444f038fab33eb25b6b5d678449d49da2258017a630ff2e6b36c27028557038a033b415b026c
|
||||||
|
@ -0,0 +1,123 @@
|
|||||||
|
# Copyright 1999-2013 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/app-antivirus/clamav/clamav-0.97.8.ebuild,v 1.1 2013/04/23 18:02:01 lordvan Exp $
|
||||||
|
|
||||||
|
EAPI=5
|
||||||
|
|
||||||
|
inherit eutils flag-o-matic user
|
||||||
|
|
||||||
|
DESCRIPTION="Clam Anti-Virus Scanner"
|
||||||
|
HOMEPAGE="http://www.clamav.net/"
|
||||||
|
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="GPL-2"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris ~x86-solaris"
|
||||||
|
IUSE="bzip2 clamdtop iconv ipv6 milter selinux static-libs uclibc"
|
||||||
|
|
||||||
|
CDEPEND="bzip2? ( app-arch/bzip2 )
|
||||||
|
clamdtop? ( sys-libs/ncurses )
|
||||||
|
iconv? ( virtual/libiconv )
|
||||||
|
milter? ( || ( mail-filter/libmilter mail-mta/sendmail ) )
|
||||||
|
dev-libs/libtommath
|
||||||
|
>=sys-libs/zlib-1.2.2
|
||||||
|
sys-devel/libtool"
|
||||||
|
DEPEND="${CDEPEND}
|
||||||
|
virtual/pkgconfig"
|
||||||
|
RDEPEND="${CDEPEND}
|
||||||
|
selinux? ( sec-policy/selinux-clamav )"
|
||||||
|
|
||||||
|
RESTRICT="test"
|
||||||
|
|
||||||
|
DOCS=( AUTHORS BUGS ChangeLog FAQ INSTALL NEWS README UPGRADE )
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
"${FILESDIR}"/${PN}-0.97-nls.patch
|
||||||
|
)
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
enewgroup clamav
|
||||||
|
enewuser clamav -1 -1 /dev/null clamav
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
use ppc64 && append-flags -mminimal-toic
|
||||||
|
use uclibc && export ac_cv_type_error_t=yes
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
econf \
|
||||||
|
--disable-experimental \
|
||||||
|
--enable-id-check \
|
||||||
|
--with-dbdir="${EPREFIX}"/var/lib/clamav \
|
||||||
|
--with-system-tommath \
|
||||||
|
--with-zlib="${EPREFIX}"/usr \
|
||||||
|
$(use_enable bzip2) \
|
||||||
|
$(use_enable clamdtop) \
|
||||||
|
$(use_enable ipv6) \
|
||||||
|
$(use_enable milter) \
|
||||||
|
$(use_enable static-libs static) \
|
||||||
|
$(use_with iconv)
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
default
|
||||||
|
|
||||||
|
rm -rf "${ED}"/var/lib/clamav
|
||||||
|
newinitd "${FILESDIR}"/clamd.initd-r5 clamd
|
||||||
|
newconfd "${FILESDIR}"/clamd.conf clamd
|
||||||
|
|
||||||
|
keepdir /var/lib/clamav
|
||||||
|
fowners clamav:clamav /var/lib/clamav
|
||||||
|
keepdir /var/log/clamav
|
||||||
|
fowners clamav:clamav /var/log/clamav
|
||||||
|
|
||||||
|
dodir /etc/logrotate.d
|
||||||
|
insinto /etc/logrotate.d
|
||||||
|
newins "${FILESDIR}"/clamav.logrotate clamav
|
||||||
|
|
||||||
|
# Modify /etc/{clamd,freshclam}.conf to be usable out of the box
|
||||||
|
sed -i -e "s:^\(Example\):\# \1:" \
|
||||||
|
-e "s:.*\(PidFile\) .*:\1 ${EPREFIX}/var/run/clamav/clamd.pid:" \
|
||||||
|
-e "s:.*\(LocalSocket\) .*:\1 ${EPREFIX}/var/run/clamav/clamd.sock:" \
|
||||||
|
-e "s:.*\(User\) .*:\1 clamav:" \
|
||||||
|
-e "s:^\#\(LogFile\) .*:\1 ${EPREFIX}/var/log/clamav/clamd.log:" \
|
||||||
|
-e "s:^\#\(LogTime\).*:\1 yes:" \
|
||||||
|
-e "s:^\#\(AllowSupplementaryGroups\).*:\1 yes:" \
|
||||||
|
"${ED}"/etc/clamd.conf
|
||||||
|
sed -i -e "s:^\(Example\):\# \1:" \
|
||||||
|
-e "s:.*\(PidFile\) .*:\1 ${EPREFIX}/var/run/clamav/freshclam.pid:" \
|
||||||
|
-e "s:.*\(DatabaseOwner\) .*:\1 clamav:" \
|
||||||
|
-e "s:^\#\(UpdateLogFile\) .*:\1 ${EPREFIX}/var/log/clamav/freshclam.log:" \
|
||||||
|
-e "s:^\#\(NotifyClamd\).*:\1 ${EPREFIX}/etc/clamd.conf:" \
|
||||||
|
-e "s:^\#\(ScriptedUpdates\).*:\1 yes:" \
|
||||||
|
-e "s:^\#\(AllowSupplementaryGroups\).*:\1 yes:" \
|
||||||
|
"${ED}"/etc/freshclam.conf
|
||||||
|
|
||||||
|
if use milter ; then
|
||||||
|
# MilterSocket one to include ' /' because there is a 2nd line for
|
||||||
|
# inet: which we want to leave
|
||||||
|
dodoc "${FILESDIR}"/clamav-milter.README.gentoo
|
||||||
|
sed -i -e "s:^\(Example\):\# \1:" \
|
||||||
|
-e "s:.*\(PidFile\) .*:\1 ${EPREFIX}/var/run/clamav/clamav-milter.pid:" \
|
||||||
|
-e "s+^\#\(ClamdSocket\) .*+\1 unix:${EPREFIX}/var/run/clamav/clamd.sock+" \
|
||||||
|
-e "s:.*\(User\) .*:\1 clamav:" \
|
||||||
|
-e "s+^\#\(MilterSocket\) /.*+\1 unix:${EPREFIX}/var/run/clamav/clamav-milter.sock+" \
|
||||||
|
-e "s:^\#\(AllowSupplementaryGroups\).*:\1 yes:" \
|
||||||
|
-e "s:^\#\(LogFile\) .*:\1 ${EPREFIX}/var/log/clamav/clamav-milter.log:" \
|
||||||
|
"${ED}"/etc/clamav-milter.conf
|
||||||
|
cat > "${ED}"/etc/conf.d/clamd <<-EOF
|
||||||
|
MILTER_NICELEVEL=19
|
||||||
|
START_MILTER=no
|
||||||
|
EOF
|
||||||
|
fi
|
||||||
|
|
||||||
|
prune_libtool_files --all
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
if use milter ; then
|
||||||
|
elog "For simple instructions how to setup the clamav-milter read the"
|
||||||
|
elog "clamav-milter.README.gentoo in /usr/share/doc/${PF}"
|
||||||
|
fi
|
||||||
|
}
|
@ -0,0 +1,22 @@
|
|||||||
|
Index: k3b-2.0.2/plugins/decoder/ffmpeg/k3bffmpegwrapper.cpp
|
||||||
|
===================================================================
|
||||||
|
--- k3b-2.0.2.orig/plugins/decoder/ffmpeg/k3bffmpegwrapper.cpp 2013-04-22 17:46:13.523959500 +0200
|
||||||
|
+++ k3b-2.0.2/plugins/decoder/ffmpeg/k3bffmpegwrapper.cpp 2013-04-22 18:40:49.890007513 +0200
|
||||||
|
@@ -95,7 +95,7 @@ bool K3bFFMpegFile::open()
|
||||||
|
}
|
||||||
|
|
||||||
|
// analyze the streams
|
||||||
|
- ::av_find_stream_info( d->formatContext );
|
||||||
|
+ ::avformat_find_stream_info( d->formatContext, 0 );
|
||||||
|
|
||||||
|
// we only handle files containing one audio stream
|
||||||
|
if( d->formatContext->nb_streams != 1 ) {
|
||||||
|
@@ -129,7 +129,7 @@ bool K3bFFMpegFile::open()
|
||||||
|
|
||||||
|
// open the codec on our context
|
||||||
|
kDebug() << "(K3bFFMpegFile) found codec for " << m_filename;
|
||||||
|
- if( ::avcodec_open( codecContext, d->codec ) < 0 ) {
|
||||||
|
+ if( ::avcodec_open2( codecContext, d->codec, 0 ) < 0 ) {
|
||||||
|
kDebug() << "(K3bFFMpegDecoderFactory) could not open codec.";
|
||||||
|
return false;
|
||||||
|
}
|
@ -1 +1,2 @@
|
|||||||
DIST oclHashcat-lite-0.14.7z 2967901 SHA256 faec3c48c1ee9adde97d4f5efad17bb36ce4e69b495eeed80ae89d6faf9db551 SHA512 71fd31947208df6cd1ce26d64b0b68191d479a8142cde936eafe4c256e11905ab955a238a93393f3cf5865c75729d13bb0d496da9109c5f644e326331dca9b08 WHIRLPOOL 4c6972b5c993debbd1590fa0b4fdc59ba409cc9bcee05de2112cf4c79a74bf67c63e5a5abf70047fe0ae4cb1d6f23a57b83b84f3f1ac34e8247e9542da1d7881
|
DIST oclHashcat-lite-0.14.7z 2967901 SHA256 faec3c48c1ee9adde97d4f5efad17bb36ce4e69b495eeed80ae89d6faf9db551 SHA512 71fd31947208df6cd1ce26d64b0b68191d479a8142cde936eafe4c256e11905ab955a238a93393f3cf5865c75729d13bb0d496da9109c5f644e326331dca9b08 WHIRLPOOL 4c6972b5c993debbd1590fa0b4fdc59ba409cc9bcee05de2112cf4c79a74bf67c63e5a5abf70047fe0ae4cb1d6f23a57b83b84f3f1ac34e8247e9542da1d7881
|
||||||
|
DIST oclHashcat-lite-0.15.7z 6026598 SHA256 40fd6f5410e1c0d5d5e7c9d60c173d838289025a2fc36b86690fb26657ed5796 SHA512 b70738a40cdbc5062cb72f1de93a2d29cdd824b7f3cb0f5bc42e3a7e83246d2247385040efe230afffa26ddf26823ecefabf16f31b1925c7460e7cd8933342b8 WHIRLPOOL b53ce94f04dd464fd6727641726aa56620ec6dcf5c557887c7346955b08b33f187b59db27debf98210c477299ef13c8f7334e8c3b2234b27edf0fe97b1438235
|
||||||
|
@ -0,0 +1,139 @@
|
|||||||
|
# Copyright 1999-2013 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/app-crypt/oclhashcat-lite-bin/oclhashcat-lite-bin-0.15.ebuild,v 1.1 2013/04/23 02:49:26 zerochaos Exp $
|
||||||
|
|
||||||
|
EAPI=5
|
||||||
|
|
||||||
|
inherit eutils pax-utils
|
||||||
|
|
||||||
|
DESCRIPTION="An opencl hash cracker"
|
||||||
|
HOMEPAGE="http://hashcat.net/oclhashcat-lite/"
|
||||||
|
MY_P="oclHashcat-lite-${PV}"
|
||||||
|
SRC_URI="http://hashcat.net/files/${MY_P}.7z"
|
||||||
|
|
||||||
|
#license applies to this version per http://hashcat.net/forum/thread-1348.html
|
||||||
|
LICENSE="hashcat"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="-* ~amd64 ~x86"
|
||||||
|
|
||||||
|
IUSE_VIDEO_CARDS="video_cards_fglrx
|
||||||
|
video_cards_nvidia"
|
||||||
|
|
||||||
|
IUSE="virtualcl ${IUSE_VIDEO_CARDS}"
|
||||||
|
|
||||||
|
RDEPEND="sys-libs/zlib
|
||||||
|
video_cards_nvidia? ( >=x11-drivers/nvidia-drivers-310.32 )
|
||||||
|
video_cards_fglrx? ( =x11-drivers/ati-drivers-13.1 )"
|
||||||
|
DEPEND="${RDEPEND}
|
||||||
|
app-arch/p7zip"
|
||||||
|
|
||||||
|
S="${WORKDIR}/${MY_P}"
|
||||||
|
|
||||||
|
RESTRICT="strip"
|
||||||
|
QA_PREBUILT="*Hashcat-lite*.bin"
|
||||||
|
|
||||||
|
src_test() {
|
||||||
|
printf "%02x" ${PV#0.} > "${S}"/eula.accepted
|
||||||
|
if use video_cards_nvidia; then
|
||||||
|
if [ ! -w /dev/nvidia0 ]; then
|
||||||
|
einfo "To run these tests, portage likely must be in the video group."
|
||||||
|
einfo "Please run \"passwd -a portage video\" if the tests will fail"
|
||||||
|
fi
|
||||||
|
./cudaExample0.sh || die
|
||||||
|
./cudaExample400.sh || die
|
||||||
|
./cudaExample500.sh || die
|
||||||
|
fi
|
||||||
|
if use video_cards_fglrx; then
|
||||||
|
./oclExample0.sh || die
|
||||||
|
./oclExample400.sh || die
|
||||||
|
./oclExample500.sh || die
|
||||||
|
fi
|
||||||
|
rm "${S}"/eula.accepted
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
dodoc docs/*
|
||||||
|
rm -r "${S}"/*.exe "${S}"/*.cmd "${S}"/docs || die
|
||||||
|
if use x86; then
|
||||||
|
rm oclHashcat-lite64.bin || die
|
||||||
|
rm cudaHashcat-lite64.bin || die
|
||||||
|
fi
|
||||||
|
if use amd64; then
|
||||||
|
rm oclHashcat-lite32.bin || die
|
||||||
|
rm cudaHashcat-lite32.bin || die
|
||||||
|
fi
|
||||||
|
if ! use video_cards_fglrx; then
|
||||||
|
rm -r kernels/4098 || die
|
||||||
|
rm oclHashcat-lite*.bin || die
|
||||||
|
fi
|
||||||
|
if ! use video_cards_nvidia; then
|
||||||
|
rm -r kernels/4318 || die
|
||||||
|
rm cudaHashcat-lite*.bin || die
|
||||||
|
fi
|
||||||
|
use virtualcl || { rm vclHashcat-lite* || die; }
|
||||||
|
#I assume this is needed but I didn't check
|
||||||
|
pax-mark m *Hashcat-lite*.bin
|
||||||
|
|
||||||
|
insinto /opt/${PN}
|
||||||
|
doins -r "${S}"/*
|
||||||
|
|
||||||
|
dodir /opt/bin
|
||||||
|
|
||||||
|
cat <<-EOF > "${ED}"/opt/bin/oclhashcat-lite
|
||||||
|
#! /bin/sh
|
||||||
|
echo "oclHashcat-lite and all related files have been installed in /opt/${PN}"
|
||||||
|
echo "Please run one of the following binaries to use gpu accelerated hashcat:"
|
||||||
|
EOF
|
||||||
|
|
||||||
|
for x in oclHashcat-lite64.bin oclHashcat-lite32.bin cudaHashcat-lite64.bin cudaHashcat-lite32.bin vclHashcat-lite64.bin vclHashcat-lite32.bin
|
||||||
|
do
|
||||||
|
if [ -f "${ED}"/opt/${PN}/${x} ]
|
||||||
|
then
|
||||||
|
case "${x}" in
|
||||||
|
oclHashcat-lite64.bin)
|
||||||
|
echo "echo '64 bit ATI accelerated \"oclHashcat-lite64.bin\"'" >> "${ED}"/opt/bin/oclhashcat-lite
|
||||||
|
;;
|
||||||
|
oclHashcat-lite32.bin)
|
||||||
|
echo "echo '32 bit ATI accelerated \"oclHashcat-lite32.bin\"'" >> "${ED}"/opt/bin/oclhashcat-lite
|
||||||
|
;;
|
||||||
|
cudaHashcat-lite64.bin)
|
||||||
|
echo "echo '64 bit NVIDIA accelerated \"cudaHashcat-lite64.bin\"'" >> "${ED}"/opt/bin/oclhashcat-lite
|
||||||
|
;;
|
||||||
|
cudaHashcat-lite32.bin)
|
||||||
|
echo "echo '32 bit NVIDIA accelerated \"cudaHashcat-lite32.bin\"'" >> "${ED}"/opt/bin/oclhashcat-lite
|
||||||
|
;;
|
||||||
|
vclHashcat-lite64.bin)
|
||||||
|
echo "echo '64 bit VirtualCL Cluster support \"vclHashcat-lite64.bin\"'" >> "${ED}"/opt/bin/oclhashcat-lite
|
||||||
|
;;
|
||||||
|
vclHashcat-lite32.bin)
|
||||||
|
echo "echo '32 bit VirtualCL Cluster support \"vclHashcat-lite32.bin\"'" >> "${ED}"/opt/bin/oclhashcat-lite
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
fperms +x /opt/${PN}/${x}
|
||||||
|
|
||||||
|
cat <<-EOF > "${ED}"/opt/bin/${x}
|
||||||
|
#! /bin/sh
|
||||||
|
cd /opt/${PN}
|
||||||
|
echo "Warning: ${x} is running from /opt/${PN} so be careful of relative paths."
|
||||||
|
exec ./${x} "\$@"
|
||||||
|
EOF
|
||||||
|
|
||||||
|
fperms +x /opt/bin/${x}
|
||||||
|
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
fperms +x /opt/bin/oclhashcat-lite
|
||||||
|
fowners root:video /opt/${PN}
|
||||||
|
einfo "oclhashcat-lite can be run as user if you are in the video group"
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_preinst() {
|
||||||
|
#I feel so dirty doing this
|
||||||
|
#first we remove the eula.accepted because it cannot properly handle and empty or old one (crash or doesn't run at all)
|
||||||
|
rm -f "${EROOT}"/opt/${PN}/eula.accepted
|
||||||
|
#next we remove any compiled kernel files as these get built on first run only if they aren't there because there are no timestamp checks
|
||||||
|
rm -f "${EROOT}"/opt/${PN}/kernels/{4318,4098}/"*.kernel"
|
||||||
|
#have mercy on my soul
|
||||||
|
}
|
@ -1 +1,2 @@
|
|||||||
DIST oclHashcat-plus-0.13.7z 22397251 SHA256 374e612979a9e10ecf01d2f2a892f8f0af00ca8cfcfbcba5e6e36eb2aae27228 SHA512 3e259ad7abb1a42b1bed30de2ccc1d3f81d0ce420b27e4969332abbbe460287e3b3420c253cc7a82e060daa7411464927edb4f084e8e671ae60553c234f097de WHIRLPOOL 075f6eab5b03e24964ce4793435189bd950678f12276cd45f49e12f57b6d638c1d6acdb91d2d8397963de5a83b44383103c41438ac21a67d6e51d4c68149d399
|
DIST oclHashcat-plus-0.13.7z 22397251 SHA256 374e612979a9e10ecf01d2f2a892f8f0af00ca8cfcfbcba5e6e36eb2aae27228 SHA512 3e259ad7abb1a42b1bed30de2ccc1d3f81d0ce420b27e4969332abbbe460287e3b3420c253cc7a82e060daa7411464927edb4f084e8e671ae60553c234f097de WHIRLPOOL 075f6eab5b03e24964ce4793435189bd950678f12276cd45f49e12f57b6d638c1d6acdb91d2d8397963de5a83b44383103c41438ac21a67d6e51d4c68149d399
|
||||||
|
DIST oclHashcat-plus-0.14.7z 43411331 SHA256 4e5ee82bdb72ecd0ebc7795414a89d2755ed35dfc26fcbf92648e46dd223056e SHA512 8f6f548eb7de0dc9285f214757a9400976a696085a5ae61c583c0a3d73fcdb8326345054dda132414c2d44cdaa3207abebb47968defbb290e77fd496fd62861d WHIRLPOOL 9cf03c51a5b65326f08acf78987397035641cd6c38b86bb00620d3880958ccfc48fde24eff8f41b40a2c022ef3478e22c203d8eb8037c545b797956473c80a94
|
||||||
|
@ -0,0 +1,133 @@
|
|||||||
|
# Copyright 1999-2013 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/app-crypt/oclhashcat-plus-bin/oclhashcat-plus-bin-0.14.ebuild,v 1.1 2013/04/23 02:36:57 zerochaos Exp $
|
||||||
|
|
||||||
|
EAPI=5
|
||||||
|
|
||||||
|
inherit eutils pax-utils
|
||||||
|
|
||||||
|
DESCRIPTION="An opencl multihash cracker"
|
||||||
|
HOMEPAGE="http://hashcat.net/oclhashcat-plus/"
|
||||||
|
|
||||||
|
MY_P="oclHashcat-plus-${PV}"
|
||||||
|
SRC_URI="http://hashcat.net/files/${MY_P}.7z"
|
||||||
|
|
||||||
|
LICENSE="hashcat"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="-* ~amd64 ~x86"
|
||||||
|
|
||||||
|
IUSE_VIDEO_CARDS="video_cards_fglrx
|
||||||
|
video_cards_nvidia"
|
||||||
|
|
||||||
|
IUSE="virtualcl ${IUSE_VIDEO_CARDS}"
|
||||||
|
|
||||||
|
RDEPEND="sys-libs/zlib
|
||||||
|
video_cards_nvidia? ( >=x11-drivers/nvidia-drivers-310.32 )
|
||||||
|
video_cards_fglrx? ( =x11-drivers/ati-drivers-13.1 )"
|
||||||
|
DEPEND="${RDEPEND}
|
||||||
|
app-arch/p7zip"
|
||||||
|
|
||||||
|
S="${WORKDIR}/${MY_P}"
|
||||||
|
|
||||||
|
RESTRICT="strip"
|
||||||
|
QA_PREBUILT="*Hashcat-plus*.bin"
|
||||||
|
|
||||||
|
src_test() {
|
||||||
|
printf "%02x" ${PV#0.} > "${S}"/eula.accepted
|
||||||
|
if use video_cards_nvidia; then
|
||||||
|
if [ ! -w /dev/nvidia0 ]; then
|
||||||
|
einfo "To run these tests, portage likely must be in the video group."
|
||||||
|
einfo "Please run \"passwd -a portage video\" if the tests will fail"
|
||||||
|
fi
|
||||||
|
./cudaExample0.sh || die
|
||||||
|
./cudaExample400.sh || die
|
||||||
|
./cudaExample500.sh || die
|
||||||
|
fi
|
||||||
|
if use video_cards_fglrx; then
|
||||||
|
./oclExample0.sh || die
|
||||||
|
./oclExample400.sh || die
|
||||||
|
./oclExample500.sh || die
|
||||||
|
fi
|
||||||
|
rm "${S}"/eula.accepted
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
dodoc docs/*
|
||||||
|
rm -r "${S}"/*.exe "${S}"/*.cmd "${S}"/docs || die
|
||||||
|
use x86 && rm *Hashcat-plus64*
|
||||||
|
use amd64 && rm *Hashcat-plus32*
|
||||||
|
use virtualcl || { rm vclHashcat-plus* || die; }
|
||||||
|
|
||||||
|
if ! use video_cards_fglrx; then
|
||||||
|
rm -r kernels/4098 || die
|
||||||
|
rm oclHashcat-plus*.bin || die
|
||||||
|
fi
|
||||||
|
if ! use video_cards_nvidia; then
|
||||||
|
rm -r kernels/4318 || die
|
||||||
|
rm cudaHashcat-plus*.bin || die
|
||||||
|
fi
|
||||||
|
pax-mark m *Hashcat-plus*.bin
|
||||||
|
|
||||||
|
insinto /opt/${PN}
|
||||||
|
doins -r "${S}"/* || die "Copy files failed"
|
||||||
|
|
||||||
|
dodir /opt/bin
|
||||||
|
|
||||||
|
cat <<-EOF > "${ED}"/opt/bin/oclhashcat-plus
|
||||||
|
#! /bin/sh
|
||||||
|
echo "oclHashcat-plus and all related files have been installed in /opt/${PN}"
|
||||||
|
echo "Please run one of the following binaries to use gpu accelerated hashcat:"
|
||||||
|
EOF
|
||||||
|
|
||||||
|
for x in oclHashcat-plus64.bin oclHashcat-plus32.bin cudaHashcat-plus64.bin cudaHashcat-plus32.bin vclHashcat-plus64.bin vclHashcat-plus32.bin
|
||||||
|
do
|
||||||
|
if [ -f "${ED}"/opt/${PN}/${x} ]
|
||||||
|
then
|
||||||
|
case "${x}" in
|
||||||
|
oclHashcat-plus64.bin)
|
||||||
|
echo "echo '64 bit ATI accelerated \"oclHashcat-plus64.bin\"'" >> "${ED}"/opt/bin/oclhashcat-plus
|
||||||
|
;;
|
||||||
|
oclHashcat-plus32.bin)
|
||||||
|
echo "echo '32 bit ATI accelerated \"oclHashcat-plus32.bin\"'" >> "${ED}"/opt/bin/oclhashcat-plus
|
||||||
|
;;
|
||||||
|
cudaHashcat-plus64.bin)
|
||||||
|
echo "echo '64 bit NVIDIA accelerated \"cudaHashcat-plus64.bin\"'" >> "${ED}"/opt/bin/oclhashcat-plus
|
||||||
|
;;
|
||||||
|
cudaHashcat-plus32.bin)
|
||||||
|
echo "echo '32 bit NVIDIA accelerated \"cudaHashcat-plus32.bin\"'" >> "${ED}"/opt/bin/oclhashcat-plus
|
||||||
|
;;
|
||||||
|
vclHashcat-plus64.bin)
|
||||||
|
echo "echo '64 bit VirtualCL Cluster support \"vclHashcat-plus64.bin\"'" >> "${ED}"/opt/bin/oclhashcat-plus
|
||||||
|
;;
|
||||||
|
vclHashcat-plus32.bin)
|
||||||
|
echo "echo '32 bit VirtualCL Cluster support \"vclHashcat-plus32.bin\"'" >> "${ED}"/opt/bin/oclhashcat-plus
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
fperms +x /opt/${PN}/${x}
|
||||||
|
|
||||||
|
cat <<-EOF > "${ED}"/opt/bin/${x}
|
||||||
|
#! /bin/sh
|
||||||
|
cd /opt/${PN}
|
||||||
|
echo "Warning: ${x} is running from /opt/${PN} so be careful of relative paths."
|
||||||
|
exec ./${x} "\$@"
|
||||||
|
EOF
|
||||||
|
|
||||||
|
fperms +x /opt/bin/${x}
|
||||||
|
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
fperms +x /opt/bin/oclhashcat-plus
|
||||||
|
fowners root:video /opt/${PN}
|
||||||
|
einfo "oclhashcat-plus can be run as user if you are in the video group"
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_preinst() {
|
||||||
|
#I feel so dirty doing this
|
||||||
|
#first we remove the eula.accepted because it cannot properly handle and empty or old one (crash or doesn't run at all)
|
||||||
|
rm -f "${EROOT}"/opt/${PN}/eula.accepted
|
||||||
|
#next we remove any compiled kernel files as these get built on first run only if they aren't there because there are no timestamp checks
|
||||||
|
rm -f "${EROOT}"/opt/${PN}/kernels/{4318,4098}/"*.kernel"
|
||||||
|
#have mercy on my soul
|
||||||
|
}
|
@ -0,0 +1 @@
|
|||||||
|
DIST tatt-0.1.tar.gz 20539 SHA256 70e976606e9f4e1c76d67048f0eaa3f0c53e6b8134621d18bc74f5df01ac8a96 SHA512 5ca2daf190eca82ba038f60dab15587616404dc24e022c7154e1546667caaa7a40681b4401b6a3e2843d9bed9553d9e77dc5ff548434c430902329677ac6f5a5 WHIRLPOOL 25a4e519dec28cf7bd9cee53ba87ce895ddfb31038864f7158473923e8de6415ac5709e9fa3763b320241df34385e74b6fc869f8c9aef44b8a0da6a596b5b679
|
@ -0,0 +1,35 @@
|
|||||||
|
# Copyright 1999-2013 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/app-portage/tatt/tatt-0.1.ebuild,v 1.1 2013/04/23 12:07:05 tomka Exp $
|
||||||
|
|
||||||
|
EAPI=5
|
||||||
|
|
||||||
|
#configobj does not support python-3
|
||||||
|
PYTHON_COMPAT=( python2_6 python2_7 )
|
||||||
|
|
||||||
|
inherit distutils-r1
|
||||||
|
|
||||||
|
DESCRIPTION="tatt is an arch testing tool"
|
||||||
|
HOMEPAGE="https://github.com/tom111/tatt"
|
||||||
|
SRC_URI="https://github.com/tom111/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="GPL-2"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
IUSE="+templates"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
${PYTHON_DEPS}
|
||||||
|
app-portage/eix
|
||||||
|
app-portage/gentoolkit
|
||||||
|
www-client/pybugz
|
||||||
|
dev-python/configobj"
|
||||||
|
DEPEND="${RDEPEND}"
|
||||||
|
|
||||||
|
python_install_all() {
|
||||||
|
distutils-r1_python_install_all
|
||||||
|
if use templates; then
|
||||||
|
insinto "/usr/share/${PN}"
|
||||||
|
doins -r templates || die
|
||||||
|
fi
|
||||||
|
}
|
@ -1,3 +1 @@
|
|||||||
DIST calibre-0.9.20.tar.xz 28170112 SHA256 96075f6dbd25bf0bd26378b67d695478bd251a5ab8706cbc5907209aa6b6fcda SHA512 6bfa2e5c3b08d4201a281c3067de47d450474586355ab61fe3e4a70ab4a67164fa22b4baadaf859cc89918cc839500330c82e8501f0d52c63441b8bb1cbd4fda WHIRLPOOL 4c21bbc439ccdf2c1ff1cd6d93506d11e165387f68a9cba10f3263bfe6a70085d1ec98db7f187b51e5cc6879427fba2feb0afa2a2d1f4c570517163549546f73
|
|
||||||
DIST calibre-0.9.26.tar.xz 28649776 SHA256 9e38087d814acefc580e701fd73a72b81cfd78dbd2b6a100c037eed4a69bb4ba SHA512 3118f4b44a84d7a2187ce1d249a85400b9c725e0aeb779f764123e364bc9304b5fac5752cd187d51b36e9e0bf06d3e36eb7cbb21d91a28bfe1df717a5ec7a303 WHIRLPOOL c337c604035559fe07607a9239e78ee6c33adc5b836634d87209be2979fb7afa5972de8deb5f112bd8a2405016cd52e374dfaddcc942849cc820cbd4532c2ff0
|
|
||||||
DIST calibre-0.9.27.tar.xz 28696180 SHA256 8fd3779c8f878420333f6919f80493bf69d4b64bf427697ebc365497d2450d1f SHA512 91970f7c7349f661fc582eb43b89b81e77350b1cf2237c78e55c9f028a94b803b5d72bdac3ac11722c4fcf93077c1f8042567f8e380ad03423ba6c7f5dec7318 WHIRLPOOL 2313f94ee2417343693e1b48736434d1bf356795eb781abbaf68b858ba9fd57eb2a78e8afe04b9c992a1879a99eb9cf65527ccea7ed1a91d7554a62dcee7822b
|
DIST calibre-0.9.27.tar.xz 28696180 SHA256 8fd3779c8f878420333f6919f80493bf69d4b64bf427697ebc365497d2450d1f SHA512 91970f7c7349f661fc582eb43b89b81e77350b1cf2237c78e55c9f028a94b803b5d72bdac3ac11722c4fcf93077c1f8042567f8e380ad03423ba6c7f5dec7318 WHIRLPOOL 2313f94ee2417343693e1b48736434d1bf356795eb781abbaf68b858ba9fd57eb2a78e8afe04b9c992a1879a99eb9cf65527ccea7ed1a91d7554a62dcee7822b
|
||||||
|
@ -1,190 +0,0 @@
|
|||||||
# Copyright 1999-2013 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/app-text/calibre/calibre-0.9.20.ebuild,v 1.4 2013/04/17 07:41:25 zmedico Exp $
|
|
||||||
|
|
||||||
EAPI=5
|
|
||||||
PYTHON_DEPEND=2:2.7
|
|
||||||
PYTHON_USE_WITH="ssl sqlite"
|
|
||||||
|
|
||||||
inherit python eutils fdo-mime bash-completion-r1 multilib toolchain-funcs
|
|
||||||
|
|
||||||
DESCRIPTION="Ebook management application."
|
|
||||||
HOMEPAGE="http://calibre-ebook.com/"
|
|
||||||
SRC_URI="http://sourceforge.net/projects/calibre/files/${PV}/${P}.tar.xz"
|
|
||||||
|
|
||||||
LICENSE="GPL-2"
|
|
||||||
|
|
||||||
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-libs/chmlib-0.40:=
|
|
||||||
>=dev-libs/icu-4.4:=
|
|
||||||
>=dev-python/beautifulsoup-3.0.5:python-2
|
|
||||||
dev-python/netifaces
|
|
||||||
dev-python/python-dateutil
|
|
||||||
>=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/imaging-1.1.6
|
|
||||||
>=dev-python/lxml-2.2.1
|
|
||||||
>=dev-python/mechanize-0.1.11
|
|
||||||
>=dev-python/python-dateutil-1.4.1
|
|
||||||
>=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"
|
|
||||||
|
|
||||||
S=${WORKDIR}/${PN}
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
python_set_active_version 2.7
|
|
||||||
python_pkg_setup
|
|
||||||
}
|
|
||||||
|
|
||||||
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"
|
|
||||||
}
|
|
||||||
|
|
||||||
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"
|
|
||||||
|
|
||||||
dodir "$(python_get_sitedir)" # for init_calibre.py
|
|
||||||
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
|
|
||||||
|
|
||||||
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
|
|
||||||
|
|
||||||
python_convert_shebangs -r $(python_get_version) "${ED}"
|
|
||||||
|
|
||||||
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
|
|
||||||
python_mod_optimize /usr/$(get_libdir)/${PN}
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postrm() {
|
|
||||||
python_mod_cleanup /usr/$(get_libdir)/${PN}
|
|
||||||
}
|
|
@ -1,190 +0,0 @@
|
|||||||
# Copyright 1999-2013 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/app-text/calibre/calibre-0.9.26.ebuild,v 1.2 2013/04/17 07:41:25 zmedico Exp $
|
|
||||||
|
|
||||||
EAPI=5
|
|
||||||
PYTHON_DEPEND=2:2.7
|
|
||||||
PYTHON_USE_WITH="ssl sqlite"
|
|
||||||
|
|
||||||
inherit python eutils fdo-mime bash-completion-r1 multilib toolchain-funcs
|
|
||||||
|
|
||||||
DESCRIPTION="Ebook management application."
|
|
||||||
HOMEPAGE="http://calibre-ebook.com/"
|
|
||||||
SRC_URI="http://sourceforge.net/projects/calibre/files/${PV}/${P}.tar.xz"
|
|
||||||
|
|
||||||
LICENSE="GPL-2"
|
|
||||||
|
|
||||||
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-libs/chmlib-0.40:=
|
|
||||||
>=dev-libs/icu-4.4:=
|
|
||||||
>=dev-python/beautifulsoup-3.0.5:python-2
|
|
||||||
dev-python/netifaces
|
|
||||||
dev-python/python-dateutil
|
|
||||||
>=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/imaging-1.1.6
|
|
||||||
>=dev-python/lxml-2.2.1
|
|
||||||
>=dev-python/mechanize-0.1.11
|
|
||||||
>=dev-python/python-dateutil-1.4.1
|
|
||||||
>=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"
|
|
||||||
|
|
||||||
S=${WORKDIR}/${PN}
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
python_set_active_version 2.7
|
|
||||||
python_pkg_setup
|
|
||||||
}
|
|
||||||
|
|
||||||
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"
|
|
||||||
}
|
|
||||||
|
|
||||||
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"
|
|
||||||
|
|
||||||
dodir "$(python_get_sitedir)" # for init_calibre.py
|
|
||||||
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
|
|
||||||
|
|
||||||
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
|
|
||||||
|
|
||||||
python_convert_shebangs -r $(python_get_version) "${ED}"
|
|
||||||
|
|
||||||
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
|
|
||||||
python_mod_optimize /usr/$(get_libdir)/${PN}
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postrm() {
|
|
||||||
python_mod_cleanup /usr/$(get_libdir)/${PN}
|
|
||||||
}
|
|
@ -1 +0,0 @@
|
|||||||
DIST gonzui-1.2.tar.gz 442942 SHA256 326348f181a0f34241bf82faf80220954e719b59161809e33c3117bb6c6336be SHA512 5e1096c82da84dbaacab34a0d6afd6a8a28aedb2cc45ad323b6cec28d764dce25b9894a39cacec5a36d5e01105ed9e4a1465c6962ee93ff6b1144b72f6959e78 WHIRLPOOL 8dd6c2970f00525a25405453fa9a19970940e7c89ae43b36877bbfa09bb4a59e1c66b839a6888b30000077a7d63773751731fc9976cff91b3254816b90486b6c
|
|
@ -1,39 +0,0 @@
|
|||||||
#
|
|
||||||
# ebuild.rb - a ebuild module of LangScan
|
|
||||||
#
|
|
||||||
# Copyright (C) 2005 Kenichi Ishibashi <bashi at dream.ie.ariake-nct.ac.jp>
|
|
||||||
# All rights reserved.
|
|
||||||
# This is free software with ABSOLUTELY NO WARRANTY.
|
|
||||||
#
|
|
||||||
# You can redistribute it and/or modify it under the terms of
|
|
||||||
# the GNU General Public License version 2.
|
|
||||||
#
|
|
||||||
|
|
||||||
require 'langscan/sh'
|
|
||||||
require 'langscan/_common'
|
|
||||||
|
|
||||||
module LangScan
|
|
||||||
module Ebuild
|
|
||||||
module_function
|
|
||||||
def name
|
|
||||||
"ebuild"
|
|
||||||
end
|
|
||||||
|
|
||||||
def abbrev
|
|
||||||
"ebuild"
|
|
||||||
end
|
|
||||||
|
|
||||||
def extnames
|
|
||||||
[".ebuild", ".eclass"]
|
|
||||||
end
|
|
||||||
|
|
||||||
# LangScan::Ebuild.scan iterates over shell scripts.
|
|
||||||
# It yields for each element which is interested by gonzui.
|
|
||||||
def scan(input, &block)
|
|
||||||
# delegate to LangScan::Shell.scan
|
|
||||||
LangScan::Shell.scan(input, &block)
|
|
||||||
end
|
|
||||||
|
|
||||||
LangScan.register(self)
|
|
||||||
end
|
|
||||||
end
|
|
@ -1,33 +0,0 @@
|
|||||||
#!/sbin/runscript
|
|
||||||
# Copyright 1999-2005 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/app-text/gonzui/files/gonzui,v 1.1 2005/04/12 16:07:17 matsuu Exp $
|
|
||||||
|
|
||||||
GONZUI_SERVER=/usr/bin/gonzui-server
|
|
||||||
GONZUIRC=/etc/gonzuirc
|
|
||||||
GONZUI_PIDFILE=/var/run/gonzui.pid
|
|
||||||
|
|
||||||
depend() {
|
|
||||||
need net
|
|
||||||
}
|
|
||||||
|
|
||||||
checkconfig() {
|
|
||||||
if [ ! -f "$GONZUIRC" ] ; then
|
|
||||||
eerror "Please create $GONZUIRC"
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
|
|
||||||
start() {
|
|
||||||
checkconfig || return $?
|
|
||||||
ebegin "Starting gonzui"
|
|
||||||
start-stop-daemon --start --quiet --exec $GONZUI_SERVER -- --daemon --gonzuirc=$GONZUIRC --quiet
|
|
||||||
eend $? "Failed to start gonzui"
|
|
||||||
}
|
|
||||||
|
|
||||||
stop() {
|
|
||||||
ebegin "Stopping gonzui"
|
|
||||||
start-stop-daemon --stop --quiet --pidfile $GONZUI_PIDFILE
|
|
||||||
eend $? "Failed to stop gonzui"
|
|
||||||
}
|
|
@ -1,46 +0,0 @@
|
|||||||
diff -Naur gonzui-1.2.orig/Makefile.am gonzui-1.2/Makefile.am
|
|
||||||
--- gonzui-1.2.orig/Makefile.am 2005-03-25 18:00:20.000000000 +0900
|
|
||||||
+++ gonzui-1.2/Makefile.am 2009-01-01 11:28:13.000000000 +0900
|
|
||||||
@@ -28,7 +28,7 @@
|
|
||||||
gonzui.rb.in > gonzui.rb
|
|
||||||
chmod -w gonzui.rb
|
|
||||||
|
|
||||||
-gonzuirc.sample.in: gonzuirc.sample.in.in
|
|
||||||
+gonzuirc.sample.in: gonzui.rb gonzuirc.sample.in.in
|
|
||||||
ruby gonzui-db --gonzuirc gonzuirc.sample.in.in --dump-config \
|
|
||||||
> gonzuirc.sample.in
|
|
||||||
|
|
||||||
diff -Naur gonzui-1.2.orig/configure.ac gonzui-1.2/configure.ac
|
|
||||||
--- gonzui-1.2.orig/configure.ac 2005-07-05 00:07:52.000000000 +0900
|
|
||||||
+++ gonzui-1.2/configure.ac 2009-01-01 11:28:13.000000000 +0900
|
|
||||||
@@ -9,7 +9,6 @@
|
|
||||||
AC_PROG_CC
|
|
||||||
AC_PROG_INSTALL
|
|
||||||
AC_PROG_MAKE_SET
|
|
||||||
-AM_MAINTAINER_MODE
|
|
||||||
AM_PATH_RUBY
|
|
||||||
AM_RUN_LOG_DIRS
|
|
||||||
AM_USER_GROUP
|
|
||||||
diff -Naur gonzui-1.2.orig/langscan/Makefile.am gonzui-1.2/langscan/Makefile.am
|
|
||||||
--- gonzui-1.2.orig/langscan/Makefile.am 2005-07-05 00:07:57.000000000 +0900
|
|
||||||
+++ gonzui-1.2/langscan/Makefile.am 2009-01-01 11:28:13.000000000 +0900
|
|
||||||
@@ -26,6 +26,7 @@
|
|
||||||
brainfuck.rb \
|
|
||||||
c.rb \
|
|
||||||
css.rb \
|
|
||||||
+ ebuild.rb \
|
|
||||||
elisp.rb \
|
|
||||||
java.rb \
|
|
||||||
javascript.rb \
|
|
||||||
diff -Naur gonzui-1.2.orig/langscan/python/Makefile.am gonzui-1.2/langscan/python/Makefile.am
|
|
||||||
--- gonzui-1.2.orig/langscan/python/Makefile.am 2005-03-20 21:08:58.000000000 +0900
|
|
||||||
+++ gonzui-1.2/langscan/python/Makefile.am 2009-01-01 11:28:39.000000000 +0900
|
|
||||||
@@ -27,7 +27,7 @@
|
|
||||||
|
|
||||||
# We do this to workaround flex 2.5.4 issue because our .l
|
|
||||||
# file could not be processed with flex 2.5.4.
|
|
||||||
-pythontok.c: pythontok.l
|
|
||||||
+pythontok.c: python.h pythontok.l
|
|
||||||
flex -d -opythontok.c pythontok.l || cp pythontok.c.dist pythontok.c
|
|
||||||
cmp -s pythontok.c pythontok.c.dist || cp pythontok.c pythontok.c.dist
|
|
||||||
|
|
@ -1,22 +0,0 @@
|
|||||||
--- Makefile.am
|
|
||||||
+++ Makefile.am
|
|
||||||
@@ -28,7 +28,7 @@
|
|
||||||
gonzui.rb.in > gonzui.rb
|
|
||||||
chmod -w gonzui.rb
|
|
||||||
|
|
||||||
-gonzuirc.sample.in: gonzuirc.sample.in.in
|
|
||||||
+gonzuirc.sample.in: gonzui.rb gonzuirc.sample.in.in
|
|
||||||
ruby gonzui-db --gonzuirc gonzuirc.sample.in.in --dump-config \
|
|
||||||
> gonzuirc.sample.in
|
|
||||||
|
|
||||||
--- Makefile.in
|
|
||||||
+++ Makefile.in
|
|
||||||
@@ -671,7 +671,7 @@
|
|
||||||
gonzui.rb.in > gonzui.rb
|
|
||||||
chmod -w gonzui.rb
|
|
||||||
|
|
||||||
-gonzuirc.sample.in: gonzuirc.sample.in.in
|
|
||||||
+gonzuirc.sample.in: gonzui.rb gonzuirc.sample.in.in
|
|
||||||
ruby gonzui-db --gonzuirc gonzuirc.sample.in.in --dump-config \
|
|
||||||
> gonzuirc.sample.in
|
|
||||||
|
|
@ -1,238 +0,0 @@
|
|||||||
diff -Naur gonzui-1.2.orig/Makefile.am gonzui-1.2/Makefile.am
|
|
||||||
--- gonzui-1.2.orig/Makefile.am 2005-03-25 18:00:20.000000000 +0900
|
|
||||||
+++ gonzui-1.2/Makefile.am 2011-01-14 11:51:36.207687824 +0900
|
|
||||||
@@ -28,7 +28,7 @@
|
|
||||||
gonzui.rb.in > gonzui.rb
|
|
||||||
chmod -w gonzui.rb
|
|
||||||
|
|
||||||
-gonzuirc.sample.in: gonzuirc.sample.in.in
|
|
||||||
+gonzuirc.sample.in: gonzui.rb gonzuirc.sample.in.in
|
|
||||||
ruby gonzui-db --gonzuirc gonzuirc.sample.in.in --dump-config \
|
|
||||||
> gonzuirc.sample.in
|
|
||||||
|
|
||||||
diff -Naur gonzui-1.2.orig/acinclude.m4 gonzui-1.2/acinclude.m4
|
|
||||||
--- gonzui-1.2.orig/acinclude.m4 2005-02-16 23:11:11.000000000 +0900
|
|
||||||
+++ gonzui-1.2/acinclude.m4 2011-01-14 15:52:41.631014210 +0900
|
|
||||||
@@ -54,7 +54,8 @@
|
|
||||||
RUBY_CFLAGS="`ruby -rmkmf -e 'puts Config::MAKEFILE_CONFIG["CFLAGS"]'`"
|
|
||||||
RUBY_DLEXT="`ruby -rmkmf -e 'puts Config::MAKEFILE_CONFIG["DLEXT"]'`"
|
|
||||||
RUBY_DLDFLAGS="`ruby -rmkmf -e 'puts Config::MAKEFILE_CONFIG["DLDFLAGS"]'`"
|
|
||||||
- RUBY_LIBS="`ruby -rmkmf -e 'puts Config::MAKEFILE_CONFIG["LIBS"]'`"
|
|
||||||
+ RUBY_SO_NAME="`ruby -rmkmf -e 'puts Config::MAKEFILE_CONFIG["RUBY_SO_NAME"]'`"
|
|
||||||
+ RUBY_LIBS="`ruby -rmkmf -e 'puts Config::MAKEFILE_CONFIG["LIBRUBYARG_SHARED"]+" "+Config::MAKEFILE_CONFIG["LIBS"]'`"
|
|
||||||
RUBY_HDRHDIR="`ruby -rmkmf -e 'puts Config::CONFIG["archdir"]'`"
|
|
||||||
RUBY_CPPFLAGS='-I. -I$(RUBY_HDRHDIR)'
|
|
||||||
changequote([, ])
|
|
||||||
@@ -64,6 +65,7 @@
|
|
||||||
AC_SUBST(RUBY_CFLAGS)
|
|
||||||
AC_SUBST(RUBY_DLEXT)
|
|
||||||
AC_SUBST(RUBY_DLDFLAGS)
|
|
||||||
+ AC_SUBST(RUBY_SO_NAME)
|
|
||||||
AC_SUBST(RUBY_LIBS)
|
|
||||||
AC_SUBST(RUBY_HDRHDIR)
|
|
||||||
AC_SUBST(RUBY_CPPFLAGS)
|
|
||||||
diff -Naur gonzui-1.2.orig/configure.ac gonzui-1.2/configure.ac
|
|
||||||
--- gonzui-1.2.orig/configure.ac 2005-07-05 00:07:52.000000000 +0900
|
|
||||||
+++ gonzui-1.2/configure.ac 2011-01-14 11:51:36.207687824 +0900
|
|
||||||
@@ -9,7 +9,6 @@
|
|
||||||
AC_PROG_CC
|
|
||||||
AC_PROG_INSTALL
|
|
||||||
AC_PROG_MAKE_SET
|
|
||||||
-AM_MAINTAINER_MODE
|
|
||||||
AM_PATH_RUBY
|
|
||||||
AM_RUN_LOG_DIRS
|
|
||||||
AM_USER_GROUP
|
|
||||||
diff -Naur gonzui-1.2.orig/gonzui/Makefile.am gonzui-1.2/gonzui/Makefile.am
|
|
||||||
--- gonzui-1.2.orig/gonzui/Makefile.am 2005-03-17 15:48:44.000000000 +0900
|
|
||||||
+++ gonzui-1.2/gonzui/Makefile.am 2011-01-14 17:58:12.112150295 +0900
|
|
||||||
@@ -51,16 +51,16 @@
|
|
||||||
|
|
||||||
SUFFIXES = .c .o # for automake 1.4-p6
|
|
||||||
.c.o:
|
|
||||||
- $(RUBY_CC) $(RUBY_CFLAGS) $(RUBY_CPPFLAGS) -c $<
|
|
||||||
+ $(RUBY_CC) $(CFLAGS) $(RUBY_CFLAGS) $(RUBY_CPPFLAGS) -c $<
|
|
||||||
|
|
||||||
$(TEXTTOKENIZER_DLLIB): $(TEXTTOKENIZER_OBJS)
|
|
||||||
rm -f $@
|
|
||||||
- $(RUBY_LDSHARED) $(RUBY_DLDFLAGS) -o $@ $(TEXTTOKENIZER_OBJS) $(RUBY_LIBS)
|
|
||||||
+ $(RUBY_LDSHARED) $(LDFLAGS) $(RUBY_DLDFLAGS) -o $@ $(TEXTTOKENIZER_OBJS) $(RUBY_LIBS)
|
|
||||||
|
|
||||||
$(DELTA_DLLIB): $(DELTA_OBJS)
|
|
||||||
rm -f $@
|
|
||||||
- $(RUBY_LDSHARED) $(RUBY_DLDFLAGS) -o $@ $(DELTA_OBJS) $(RUBY_LIBS)
|
|
||||||
+ $(RUBY_LDSHARED) $(LDFLAGS) $(RUBY_DLDFLAGS) -o $@ $(DELTA_OBJS) $(RUBY_LIBS)
|
|
||||||
|
|
||||||
$(AUTOPACK_DLLIB): $(AUTOPACK_OBJS)
|
|
||||||
rm -f $@
|
|
||||||
- $(RUBY_LDSHARED) $(RUBY_DLDFLAGS) -o $@ $(AUTOPACK_OBJS) $(RUBY_LIBS)
|
|
||||||
+ $(RUBY_LDSHARED) $(LDFLAGS) $(RUBY_DLDFLAGS) -o $@ $(AUTOPACK_OBJS) $(RUBY_LIBS)
|
|
||||||
diff -Naur gonzui-1.2.orig/gonzui/webapp/Makefile.am gonzui-1.2/gonzui/webapp/Makefile.am
|
|
||||||
--- gonzui-1.2.orig/gonzui/webapp/Makefile.am 2005-03-14 18:24:17.000000000 +0900
|
|
||||||
+++ gonzui-1.2/gonzui/webapp/Makefile.am 2011-01-14 17:58:36.352009521 +0900
|
|
||||||
@@ -24,8 +24,8 @@
|
|
||||||
|
|
||||||
SUFFIXES = .c .o # for automake 1.4-p6
|
|
||||||
.c.o:
|
|
||||||
- $(RUBY_CC) $(RUBY_CFLAGS) $(RUBY_CPPFLAGS) -c $<
|
|
||||||
+ $(RUBY_CC) $(CFLAGS) $(RUBY_CFLAGS) $(RUBY_CPPFLAGS) -c $<
|
|
||||||
|
|
||||||
$(XMLFORMATTER_DLLIB): $(XMLFORMATTER_OBJS)
|
|
||||||
rm -f $@
|
|
||||||
- $(RUBY_LDSHARED) $(RUBY_DLDFLAGS) -o $@ $(XMLFORMATTER_OBJS) $(RUBY_LIBS)
|
|
||||||
+ $(RUBY_LDSHARED) $(LDFLAGS) $(RUBY_DLDFLAGS) -o $@ $(XMLFORMATTER_OBJS) $(RUBY_LIBS)
|
|
||||||
diff -Naur gonzui-1.2.orig/langscan/Makefile.am gonzui-1.2/langscan/Makefile.am
|
|
||||||
--- gonzui-1.2.orig/langscan/Makefile.am 2005-07-05 00:07:57.000000000 +0900
|
|
||||||
+++ gonzui-1.2/langscan/Makefile.am 2011-01-14 11:51:36.207687824 +0900
|
|
||||||
@@ -26,6 +26,7 @@
|
|
||||||
brainfuck.rb \
|
|
||||||
c.rb \
|
|
||||||
css.rb \
|
|
||||||
+ ebuild.rb \
|
|
||||||
elisp.rb \
|
|
||||||
java.rb \
|
|
||||||
javascript.rb \
|
|
||||||
diff -Naur gonzui-1.2.orig/langscan/c/Makefile.am gonzui-1.2/langscan/c/Makefile.am
|
|
||||||
--- gonzui-1.2.orig/langscan/c/Makefile.am 2005-03-20 21:08:25.000000000 +0900
|
|
||||||
+++ gonzui-1.2/langscan/c/Makefile.am 2011-01-14 18:00:08.163475904 +0900
|
|
||||||
@@ -35,9 +35,9 @@
|
|
||||||
|
|
||||||
SUFFIXES = .c .o # for automake 1.4-p6
|
|
||||||
.c.o:
|
|
||||||
- $(RUBY_CC) $(RUBY_CFLAGS) $(RUBY_CPPFLAGS) -c $<
|
|
||||||
+ $(RUBY_CC) $(CFLAGS) $(RUBY_CFLAGS) $(RUBY_CPPFLAGS) -c $<
|
|
||||||
|
|
||||||
$(LANGSCAN_C_DLLIB): $(LANGSCAN_C_OBJS)
|
|
||||||
rm -f $@
|
|
||||||
- $(RUBY_LDSHARED) $(RUBY_DLDFLAGS) -o $@ $(LANGSCAN_C_OBJS) $(RUBY_LIBS)
|
|
||||||
+ $(RUBY_LDSHARED) $(LDFLAGS) $(RUBY_DLDFLAGS) -o $@ $(LANGSCAN_C_OBJS) $(RUBY_LIBS)
|
|
||||||
|
|
||||||
diff -Naur gonzui-1.2.orig/langscan/java/Makefile.am gonzui-1.2/langscan/java/Makefile.am
|
|
||||||
--- gonzui-1.2.orig/langscan/java/Makefile.am 2005-03-20 21:08:39.000000000 +0900
|
|
||||||
+++ gonzui-1.2/langscan/java/Makefile.am 2011-01-14 18:00:22.287393757 +0900
|
|
||||||
@@ -27,7 +27,7 @@
|
|
||||||
|
|
||||||
# We do this to workaround flex 2.5.4 issue because our .l
|
|
||||||
# file could not be processed with flex 2.5.4.
|
|
||||||
-javatok.c: javatok.l
|
|
||||||
+javatok.c: javatok.l java.h
|
|
||||||
flex -d -ojavatok.c javatok.l || cp javatok.c.dist javatok.c
|
|
||||||
cmp -s javatok.c javatok.c.dist || cp javatok.c javatok.c.dist
|
|
||||||
|
|
||||||
@@ -35,8 +35,8 @@
|
|
||||||
|
|
||||||
SUFFIXES = .c .o # for automake 1.4-p6
|
|
||||||
.c.o:
|
|
||||||
- $(RUBY_CC) $(RUBY_CFLAGS) $(RUBY_CPPFLAGS) -c $<
|
|
||||||
+ $(RUBY_CC) $(CFLAGS) $(RUBY_CFLAGS) $(RUBY_CPPFLAGS) -c $<
|
|
||||||
|
|
||||||
$(LANGSCAN_JAVA_DLLIB): $(LANGSCAN_JAVA_OBJS)
|
|
||||||
rm -f $@
|
|
||||||
- $(RUBY_LDSHARED) $(RUBY_DLDFLAGS) -o $@ $(LANGSCAN_JAVA_OBJS) $(RUBY_LIBS)
|
|
||||||
+ $(RUBY_LDSHARED) $(LDFLAGS) $(RUBY_DLDFLAGS) -o $@ $(LANGSCAN_JAVA_OBJS) $(RUBY_LIBS)
|
|
||||||
diff -Naur gonzui-1.2.orig/langscan/javascript/Makefile.am gonzui-1.2/langscan/javascript/Makefile.am
|
|
||||||
--- gonzui-1.2.orig/langscan/javascript/Makefile.am 2005-03-22 01:09:55.000000000 +0900
|
|
||||||
+++ gonzui-1.2/langscan/javascript/Makefile.am 2011-01-14 18:00:41.683280922 +0900
|
|
||||||
@@ -27,7 +27,7 @@
|
|
||||||
|
|
||||||
# We do this to workaround flex 2.5.4 issue because our .l
|
|
||||||
# file could not be processed with flex 2.5.4.
|
|
||||||
-javascripttok.c: javascripttok.l
|
|
||||||
+javascripttok.c: javascripttok.l javascript.h
|
|
||||||
flex -d -ojavascripttok.c javascripttok.l || cp javascripttok.c.dist javascripttok.c
|
|
||||||
cmp -s javascripttok.c javascripttok.c.dist || cp javascripttok.c javascripttok.c.dist
|
|
||||||
|
|
||||||
@@ -35,8 +35,8 @@
|
|
||||||
|
|
||||||
SUFFIXES = .c .o # for automake 1.4-p6
|
|
||||||
.c.o:
|
|
||||||
- $(RUBY_CC) $(RUBY_CFLAGS) $(RUBY_CPPFLAGS) -c $<
|
|
||||||
+ $(RUBY_CC) $(CFLAGS) $(RUBY_CFLAGS) $(RUBY_CPPFLAGS) -c $<
|
|
||||||
|
|
||||||
$(LANGSCAN_JAVASCRIPT_DLLIB): $(LANGSCAN_JAVASCRIPT_OBJS)
|
|
||||||
rm -f $@
|
|
||||||
- $(RUBY_LDSHARED) $(RUBY_DLDFLAGS) -o $@ $(LANGSCAN_JAVASCRIPT_OBJS) $(RUBY_LIBS)
|
|
||||||
+ $(RUBY_LDSHARED) $(LDFLAGS) $(RUBY_DLDFLAGS) -o $@ $(LANGSCAN_JAVASCRIPT_OBJS) $(RUBY_LIBS)
|
|
||||||
diff -Naur gonzui-1.2.orig/langscan/pairmatcher/Makefile.am gonzui-1.2/langscan/pairmatcher/Makefile.am
|
|
||||||
--- gonzui-1.2.orig/langscan/pairmatcher/Makefile.am 2005-03-20 20:42:22.000000000 +0900
|
|
||||||
+++ gonzui-1.2/langscan/pairmatcher/Makefile.am 2011-01-14 18:01:22.883041149 +0900
|
|
||||||
@@ -21,9 +21,9 @@
|
|
||||||
|
|
||||||
SUFFIXES = .c .o # for automake 1.4-p6
|
|
||||||
.c.o:
|
|
||||||
- $(RUBY_CC) $(RUBY_CFLAGS) $(RUBY_CPPFLAGS) -c $<
|
|
||||||
+ $(RUBY_CC) $(CFLAGS) $(RUBY_CFLAGS) $(RUBY_CPPFLAGS) -c $<
|
|
||||||
|
|
||||||
$(PAIRMATCHER_C_DLLIB): $(PAIRMATCHER_C_OBJS)
|
|
||||||
rm -f $@
|
|
||||||
- $(RUBY_LDSHARED) $(RUBY_DLDFLAGS) -o $@ $(PAIRMATCHER_C_OBJS) $(RUBY_LIBS)
|
|
||||||
+ $(RUBY_LDSHARED) $(LDFLAGS) $(RUBY_DLDFLAGS) -o $@ $(PAIRMATCHER_C_OBJS) $(RUBY_LIBS)
|
|
||||||
|
|
||||||
diff -Naur gonzui-1.2.orig/langscan/php/Makefile.am gonzui-1.2/langscan/php/Makefile.am
|
|
||||||
--- gonzui-1.2.orig/langscan/php/Makefile.am 2005-03-20 21:08:45.000000000 +0900
|
|
||||||
+++ gonzui-1.2/langscan/php/Makefile.am 2011-01-14 18:01:41.290933978 +0900
|
|
||||||
@@ -27,7 +27,7 @@
|
|
||||||
|
|
||||||
# We do this to workaround flex 2.5.4 issue because our .l
|
|
||||||
# file could not be processed with flex 2.5.4.
|
|
||||||
-phptok.c: phptok.l
|
|
||||||
+phptok.c: phptok.l php.h
|
|
||||||
flex -F -8 -d -ophptok.c phptok.l || cp phptok.c.dist phptok.c
|
|
||||||
cmp -s phptok.c phptok.c.dist || cp phptok.c phptok.c.dist
|
|
||||||
|
|
||||||
@@ -35,8 +35,8 @@
|
|
||||||
|
|
||||||
SUFFIXES = .c .o # for automake 1.4-p6
|
|
||||||
.c.o:
|
|
||||||
- $(RUBY_CC) $(RUBY_CFLAGS) $(RUBY_CPPFLAGS) -c $<
|
|
||||||
+ $(RUBY_CC) $(CFLAGS) $(RUBY_CFLAGS) $(RUBY_CPPFLAGS) -c $<
|
|
||||||
|
|
||||||
$(LANGSCAN_PHP_DLLIB): $(LANGSCAN_PHP_OBJS)
|
|
||||||
rm -f $@
|
|
||||||
- $(RUBY_LDSHARED) $(RUBY_DLDFLAGS) -o $@ $(LANGSCAN_PHP_OBJS) $(RUBY_LIBS)
|
|
||||||
+ $(RUBY_LDSHARED) $(LDFLAGS) $(RUBY_DLDFLAGS) -o $@ $(LANGSCAN_PHP_OBJS) $(RUBY_LIBS)
|
|
||||||
diff -Naur gonzui-1.2.orig/langscan/python/Makefile.am gonzui-1.2/langscan/python/Makefile.am
|
|
||||||
--- gonzui-1.2.orig/langscan/python/Makefile.am 2005-03-20 21:08:58.000000000 +0900
|
|
||||||
+++ gonzui-1.2/langscan/python/Makefile.am 2011-01-14 18:01:57.318840641 +0900
|
|
||||||
@@ -27,7 +27,7 @@
|
|
||||||
|
|
||||||
# We do this to workaround flex 2.5.4 issue because our .l
|
|
||||||
# file could not be processed with flex 2.5.4.
|
|
||||||
-pythontok.c: pythontok.l
|
|
||||||
+pythontok.c: pythontok.l python.h
|
|
||||||
flex -d -opythontok.c pythontok.l || cp pythontok.c.dist pythontok.c
|
|
||||||
cmp -s pythontok.c pythontok.c.dist || cp pythontok.c pythontok.c.dist
|
|
||||||
|
|
||||||
@@ -35,8 +35,8 @@
|
|
||||||
|
|
||||||
SUFFIXES = .c .o # for automake 1.4-p6
|
|
||||||
.c.o:
|
|
||||||
- $(RUBY_CC) $(RUBY_CFLAGS) $(RUBY_CPPFLAGS) -c $<
|
|
||||||
+ $(RUBY_CC) $(CFLAGS) $(RUBY_CFLAGS) $(RUBY_CPPFLAGS) -c $<
|
|
||||||
|
|
||||||
$(LANGSCAN_PYTHON_DLLIB): $(LANGSCAN_PYTHON_OBJS)
|
|
||||||
rm -f $@
|
|
||||||
- $(RUBY_LDSHARED) $(RUBY_DLDFLAGS) -o $@ $(LANGSCAN_PYTHON_OBJS) $(RUBY_LIBS)
|
|
||||||
+ $(RUBY_LDSHARED) $(LDFLAGS) $(RUBY_DLDFLAGS) -o $@ $(LANGSCAN_PYTHON_OBJS) $(RUBY_LIBS)
|
|
||||||
diff -Naur gonzui-1.2.orig/langscan/sh/Makefile.am gonzui-1.2/langscan/sh/Makefile.am
|
|
||||||
--- gonzui-1.2.orig/langscan/sh/Makefile.am 2005-04-08 21:42:40.000000000 +0900
|
|
||||||
+++ gonzui-1.2/langscan/sh/Makefile.am 2011-01-14 17:59:52.227568573 +0900
|
|
||||||
@@ -27,7 +27,7 @@
|
|
||||||
|
|
||||||
# We do this to workaround flex 2.5.4 issue because our .l
|
|
||||||
# file could not be processed with flex 2.5.4.
|
|
||||||
-shtok.c: shtok.l
|
|
||||||
+shtok.c: shtok.l sh.h
|
|
||||||
flex -d -oshtok.c shtok.l || cp shtok.c.dist shtok.c
|
|
||||||
cmp -s shtok.c shtok.c.dist || cp shtok.c shtok.c.dist
|
|
||||||
|
|
||||||
@@ -35,8 +35,8 @@
|
|
||||||
|
|
||||||
SUFFIXES = .c .o # for automake 1.4-p6
|
|
||||||
.c.o:
|
|
||||||
- $(RUBY_CC) $(RUBY_CFLAGS) $(RUBY_CPPFLAGS) -c $<
|
|
||||||
+ $(RUBY_CC) $(CFLAGS) $(RUBY_CFLAGS) $(RUBY_CPPFLAGS) -c $<
|
|
||||||
|
|
||||||
$(LANGSCAN_SH_DLLIB): $(LANGSCAN_SH_OBJS)
|
|
||||||
rm -f $@
|
|
||||||
- $(RUBY_LDSHARED) $(RUBY_DLDFLAGS) -o $@ $(LANGSCAN_SH_OBJS) $(RUBY_LIBS)
|
|
||||||
+ $(RUBY_LDSHARED) $(LDFLAGS) $(RUBY_DLDFLAGS) -o $@ $(LANGSCAN_SH_OBJS) $(RUBY_LIBS)
|
|
@ -1,35 +0,0 @@
|
|||||||
#!/sbin/runscript
|
|
||||||
# Copyright 1999-2011 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/app-text/gonzui/files/gonzui.initd,v 1.1 2011/01/15 01:55:39 matsuu Exp $
|
|
||||||
|
|
||||||
GONZUI_SERVER="/usr/bin/gonzui-server"
|
|
||||||
GONZUIRC="/etc/gonzuirc"
|
|
||||||
GONZUI_PIDFILE="/var/run/gonzui.pid"
|
|
||||||
|
|
||||||
depend() {
|
|
||||||
need net
|
|
||||||
}
|
|
||||||
|
|
||||||
checkconfig() {
|
|
||||||
if [ ! -f "$GONZUIRC" ] ; then
|
|
||||||
eerror "Please create $GONZUIRC"
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
|
|
||||||
start() {
|
|
||||||
checkconfig || return $?
|
|
||||||
ebegin "Starting gonzui"
|
|
||||||
start-stop-daemon --start --quiet --pidfile "${GONZUI_PIDFILE}" \
|
|
||||||
--exec /usr/bin/ruby "${GONZUI_SERVER}" -- --daemon \
|
|
||||||
--gonzuirc="${GONZUIRC}" --quiet
|
|
||||||
eend $? "Failed to start gonzui"
|
|
||||||
}
|
|
||||||
|
|
||||||
stop() {
|
|
||||||
ebegin "Stopping gonzui"
|
|
||||||
start-stop-daemon --signal INT --quiet --pidfile "${GONZUI_PIDFILE}"
|
|
||||||
eend $? "Failed to stop gonzui"
|
|
||||||
}
|
|
@ -1,82 +0,0 @@
|
|||||||
# Copyright 1999-2011 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/app-text/gonzui/gonzui-1.2-r2.ebuild,v 1.1 2011/01/15 01:55:39 matsuu Exp $
|
|
||||||
|
|
||||||
EAPI="2"
|
|
||||||
#USE_RUBY="ruby18 ruby19 ree18"
|
|
||||||
USE_RUBY="ruby18"
|
|
||||||
inherit autotools eutils ruby-ng
|
|
||||||
|
|
||||||
DESCRIPTION="source code search engine"
|
|
||||||
HOMEPAGE="http://gonzui.sourceforge.net/"
|
|
||||||
SRC_URI="mirror://sourceforge/gonzui/${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="GPL-2"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~ppc ~x86"
|
|
||||||
IUSE="bzip2 cvs gzip lha ocaml perl rpm subversion zip"
|
|
||||||
|
|
||||||
RESTRICT="test"
|
|
||||||
|
|
||||||
ruby_add_rdepend ">=dev-ruby/ruby-bdb-0.5.2 dev-ruby/ruby-progressbar"
|
|
||||||
|
|
||||||
COMMON_DEPEND=">=sys-libs/db-4.2 ocaml? ( dev-lang/ocaml )"
|
|
||||||
DEPEND="${DEPEND} ${COMMON_DEPEND}"
|
|
||||||
RDEPEND="${RDEPEND} ${COMMON_DEPEND}
|
|
||||||
bzip2? ( app-arch/bzip2 )
|
|
||||||
cvs? ( dev-vcs/cvs )
|
|
||||||
gzip? ( app-arch/gzip )
|
|
||||||
lha? ( app-arch/lha )
|
|
||||||
perl? ( dev-perl/PPI )
|
|
||||||
rpm? ( app-arch/rpm )
|
|
||||||
subversion? ( dev-vcs/subversion )
|
|
||||||
zip? ( app-arch/unzip )"
|
|
||||||
|
|
||||||
all_ruby_prepare() {
|
|
||||||
epatch "${FILESDIR}/${PF}-gentoo.patch"
|
|
||||||
cp "${FILESDIR}"/ebuild.rb "${S}"/langscan/ || die
|
|
||||||
eautoreconf
|
|
||||||
}
|
|
||||||
|
|
||||||
each_ruby_configure() {
|
|
||||||
econf || die
|
|
||||||
}
|
|
||||||
|
|
||||||
each_ruby_compile() {
|
|
||||||
emake || die
|
|
||||||
}
|
|
||||||
|
|
||||||
each_ruby_test() {
|
|
||||||
emake check || die
|
|
||||||
}
|
|
||||||
|
|
||||||
each_ruby_install() {
|
|
||||||
emake DESTDIR="${D}" install || die
|
|
||||||
}
|
|
||||||
|
|
||||||
all_ruby_install() {
|
|
||||||
mv "${D}"/etc/gonzuirc.sample "${D}"/etc/gonzuirc || die
|
|
||||||
newinitd "${FILESDIR}"/gonzui.initd gonzui || die
|
|
||||||
keepdir /var/{lib,log}/gonzui || die
|
|
||||||
|
|
||||||
dodoc AUTHORS ChangeLog NEWS README || die
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
elog "First, You need to import source codes into an index. For example, if"
|
|
||||||
elog "you want to import the source codes of wget-1.9.1.tar.gz, run the"
|
|
||||||
elog "following command."
|
|
||||||
elog
|
|
||||||
elog "# gonzui-import wget-1.9.1.tar.gz"
|
|
||||||
elog
|
|
||||||
elog "Then, you can run gonzui-server that works as a web-based search engine."
|
|
||||||
elog
|
|
||||||
elog "# gonzui-server"
|
|
||||||
elog
|
|
||||||
elog "Finally, you can access the search engine with your browser. The URL"
|
|
||||||
elog "is http://localhost:46984/."
|
|
||||||
elog
|
|
||||||
elog "The database (gonzui.db) format has become incompatible with"
|
|
||||||
elog "older versions."
|
|
||||||
elog "Please restructure the database if you already have it."
|
|
||||||
}
|
|
@ -1,47 +0,0 @@
|
|||||||
# Copyright 1999-2010 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/app-text/gonzui/gonzui-1.2.ebuild,v 1.10 2010/08/06 17:25:50 flameeyes Exp $
|
|
||||||
|
|
||||||
inherit eutils ruby
|
|
||||||
|
|
||||||
USE_RUBY="ruby18"
|
|
||||||
|
|
||||||
DESCRIPTION="source code search engine"
|
|
||||||
HOMEPAGE="http://gonzui.sourceforge.net/"
|
|
||||||
SRC_URI="mirror://sourceforge/gonzui/${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="GPL-2"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~ppc x86"
|
|
||||||
IUSE="ocaml"
|
|
||||||
|
|
||||||
DEPEND="=dev-lang/ruby-1.8*
|
|
||||||
>=sys-libs/db-4.2
|
|
||||||
>=dev-ruby/ruby-bdb-0.5.2
|
|
||||||
dev-ruby/ruby-progressbar
|
|
||||||
ocaml? ( dev-lang/ocaml )"
|
|
||||||
# perl? ( dev-perl/PPI ) # g-cpan.pl PPI
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
unpack ${A}
|
|
||||||
cd "${S}"
|
|
||||||
epatch "${FILESDIR}"/${P}-parallel.patch
|
|
||||||
cp "${FILESDIR}"/ebuild.rb "${S}"/langscan
|
|
||||||
sed -i \
|
|
||||||
-e "s/rubylib_DATA = /rubylib_DATA = ebuild.rb /" \
|
|
||||||
"${S}"/langscan/Makefile.in || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
ruby_src_install
|
|
||||||
mv "${D}"/etc/gonzuirc.sample "${D}"/etc/gonzuirc
|
|
||||||
doinitd "${FILESDIR}"/gonzui || die
|
|
||||||
keepdir /var/lib/gonzui
|
|
||||||
keepdir /var/log/gonzui
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
elog "The database (gonzui.db) format has become incompatible with"
|
|
||||||
elog "older versions."
|
|
||||||
elog "Please restructure the database if you already have it."
|
|
||||||
}
|
|
@ -1,13 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
|
||||||
<pkgmetadata>
|
|
||||||
<maintainer>
|
|
||||||
<email>maintainer-needed@gentoo.org</email>
|
|
||||||
</maintainer>
|
|
||||||
<use>
|
|
||||||
<flag name='lha'>Enable LHA archive support</flag>
|
|
||||||
<flag name='rpm'>Enable rpm support</flag>
|
|
||||||
<flag name='zip'>Enable ZIP archive support</flag>
|
|
||||||
</use>
|
|
||||||
</pkgmetadata>
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
|||||||
DIST qpdfview-0.3.4.tar.gz 120255 SHA256 1b695becabf16e357097d255a0d1ba39fa490c49a19ab0741c51359946448add SHA512 72adadcf6c8078886c75e6ddcb5dd28196a081b232148253ceb0a3e684d7d4175f988f615dc1d5a1af6c8731ea7676bafbf2c4b17a1fd4308db53452914a8e2b WHIRLPOOL 35339de1a2afdd695c6ab07a3e077e02be23f96ae7910238e8469af67e3b359f083c0a62260666c45679a80b17945a09c19175cffe1bd56b0e55f644229075b9
|
DIST qpdfview-0.3.4.tar.gz 120255 SHA256 1b695becabf16e357097d255a0d1ba39fa490c49a19ab0741c51359946448add SHA512 72adadcf6c8078886c75e6ddcb5dd28196a081b232148253ceb0a3e684d7d4175f988f615dc1d5a1af6c8731ea7676bafbf2c4b17a1fd4308db53452914a8e2b WHIRLPOOL 35339de1a2afdd695c6ab07a3e077e02be23f96ae7910238e8469af67e3b359f083c0a62260666c45679a80b17945a09c19175cffe1bd56b0e55f644229075b9
|
||||||
DIST qpdfview-0.3.7.tar.gz 385833 SHA256 6e1a91743ca429d7d354ca5ecb5f1af73e498f9ff490e07adba29f86fe92763d SHA512 c1fe0e1a0b6db890b71003f74027e66c9daae528c444453a7280fb669ab798cbf87fbc40c9e719f1b15ad2cc06edd921e34f9b4d37b2cfd05ce4e92f120d632a WHIRLPOOL ffde6fb0dd85fe4c41e0dd9b2b6f39e3f99f5384089802baaeb174e649e100e5cdbb2bc5ef6aabbc1f7fe3d5fabbec7d42bf5a68622e7f6af011768ecd231c04
|
DIST qpdfview-0.3.7.tar.gz 385833 SHA256 6e1a91743ca429d7d354ca5ecb5f1af73e498f9ff490e07adba29f86fe92763d SHA512 c1fe0e1a0b6db890b71003f74027e66c9daae528c444453a7280fb669ab798cbf87fbc40c9e719f1b15ad2cc06edd921e34f9b4d37b2cfd05ce4e92f120d632a WHIRLPOOL ffde6fb0dd85fe4c41e0dd9b2b6f39e3f99f5384089802baaeb174e649e100e5cdbb2bc5ef6aabbc1f7fe3d5fabbec7d42bf5a68622e7f6af011768ecd231c04
|
||||||
|
DIST qpdfview-0.4.2.tar.gz 341878 SHA256 ab5de31300394834c0540bde9c78ed481ea57832c72b478452cda25c787bb7a9 SHA512 5d1d6acd95a3bdf42aa4b63630fefe614951da222070e277759a65d562428380f7719702951921df85cdb64315a854c59512133877c990ecece998df20943ef9 WHIRLPOOL 05b9d28cd59ed904c50910f709d34670796d90f7a0354791d1d30f40ac4b016209fa3912bfd56947f332e2c4474a1fc9ccfcda7bd9c1bd2f6d90d817164e4de7
|
||||||
DIST qpdfview-0.4.tar.gz 396479 SHA256 6191e6ae15f228bce9ac0c58dd5032122fa2986d50f7585859cd64a7fd2b5499 SHA512 da25a10e6e76a6334d403b65b066fc5749fc8430761d90979efe091557097375216b823fe2e6703cc59abd5ae397d9e86b6ccb5a24aaa860cca661d5de65f72d WHIRLPOOL 3bfe3531850e8b41d372ad344203494660f4782887f665837746ed4b03dab647643a053b01b72ce6558800ef19fb36363bc7a7b1f54a4a920dc77b5d4edf1263
|
DIST qpdfview-0.4.tar.gz 396479 SHA256 6191e6ae15f228bce9ac0c58dd5032122fa2986d50f7585859cd64a7fd2b5499 SHA512 da25a10e6e76a6334d403b65b066fc5749fc8430761d90979efe091557097375216b823fe2e6703cc59abd5ae397d9e86b6ccb5a24aaa860cca661d5de65f72d WHIRLPOOL 3bfe3531850e8b41d372ad344203494660f4782887f665837746ed4b03dab647643a053b01b72ce6558800ef19fb36363bc7a7b1f54a4a920dc77b5d4edf1263
|
||||||
|
@ -0,0 +1,65 @@
|
|||||||
|
# Copyright 1999-2013 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/app-text/qpdfview/qpdfview-0.4.2.ebuild,v 1.1 2013/04/23 11:18:08 pinkbyte Exp $
|
||||||
|
|
||||||
|
EAPI=5
|
||||||
|
|
||||||
|
PLOCALES="ast az bg bs ca cs da de el en_GB eo es eu fi fr he hr id it ky ms my pl pt_BR ro ru sk tr ug uk zh_CN"
|
||||||
|
inherit l10n multilib qt4-r2
|
||||||
|
|
||||||
|
DESCRIPTION="A tabbed document viewer"
|
||||||
|
HOMEPAGE="http://launchpad.net/qpdfview"
|
||||||
|
SRC_URI="https://launchpad.net/${PN}/trunk/${PV}/+download/${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="GPL-2"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~arm ~x86"
|
||||||
|
IUSE="cups dbus djvu +pdf postscript sqlite +svg synctex"
|
||||||
|
|
||||||
|
RDEPEND="app-text/poppler[qt4]
|
||||||
|
dev-qt/qtcore:4[iconv]
|
||||||
|
dev-qt/qtgui:4
|
||||||
|
cups? ( net-print/cups )
|
||||||
|
dbus? ( dev-qt/qtdbus:4 )
|
||||||
|
djvu? ( app-text/djvu )
|
||||||
|
postscript? ( app-text/libspectre )
|
||||||
|
sqlite? ( dev-qt/qtsql:4[sqlite] )
|
||||||
|
svg? ( dev-qt/qtsvg:4 )
|
||||||
|
!svg? ( virtual/freedesktop-icon-theme )"
|
||||||
|
DEPEND="${RDEPEND}
|
||||||
|
virtual/pkgconfig"
|
||||||
|
|
||||||
|
DOCS=( CHANGES CONTRIBUTORS README TODO )
|
||||||
|
|
||||||
|
rm_loc() {
|
||||||
|
sed -e "/translations\/${PN}_${1}.ts/d" \
|
||||||
|
-i ${PN}.pro || die "sed translations failed"
|
||||||
|
rm translations/${PN}_${1}.ts || die "rm translations failed"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
l10n_find_plocales_changes "translations" "${PN}_" '.ts'
|
||||||
|
l10n_for_each_disabled_locale_do rm_loc
|
||||||
|
|
||||||
|
qt4-r2_src_prepare
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
local config i
|
||||||
|
|
||||||
|
for i in cups dbus pdf djvu svg synctex ; do
|
||||||
|
if ! use ${i} ; then
|
||||||
|
config+=" without_${i}"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
if ! use sqlite ; then
|
||||||
|
config+=" without_sql"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ! use postscript ; then
|
||||||
|
config+=" without_ps"
|
||||||
|
fi
|
||||||
|
|
||||||
|
eqmake4 CONFIG+="${config}" PLUGIN_INSTALL_PATH="/usr/$(get_libdir)/${PN}"
|
||||||
|
}
|
@ -1,2 +1,3 @@
|
|||||||
DIST glibmm-2.32.1.tar.xz 5208592 SHA256 d6ed4d38e8739813941a0f0fec471c00ea93c5ed46179543340821c7ca798a2f SHA512 a8ce281de374defbe75ac5f84e2c6b4facb2ae571d686c103c92dc51253111c600c64bcec54ea28f6aeeb3490172cbae97fa9283af9fab55f7f763ee13467104 WHIRLPOOL e79c0b521f190f8c43ed73f91f36eba27770c7fa0372d7060abc0fe1e4dafd5084b56a8ad001576b3a04d1795f69487c9e217b5e3e09d328d80b0707377fab01
|
DIST glibmm-2.32.1.tar.xz 5208592 SHA256 d6ed4d38e8739813941a0f0fec471c00ea93c5ed46179543340821c7ca798a2f SHA512 a8ce281de374defbe75ac5f84e2c6b4facb2ae571d686c103c92dc51253111c600c64bcec54ea28f6aeeb3490172cbae97fa9283af9fab55f7f763ee13467104 WHIRLPOOL e79c0b521f190f8c43ed73f91f36eba27770c7fa0372d7060abc0fe1e4dafd5084b56a8ad001576b3a04d1795f69487c9e217b5e3e09d328d80b0707377fab01
|
||||||
DIST glibmm-2.34.1.tar.xz 5670736 SHA256 b425a52c7e178aeaaaffd02c5497bfd68d0cb8be56cef3620558a80dd5d692c4 SHA512 c1cdba5b39172a49ff51d3cb7173cffd22822028c3ee10dca60e2bd3f09ea87d971018e47de78a763ad2ffca53bdb86a69ab156f9de30d66995698fb74f75f99 WHIRLPOOL 3397eae8bd658112fe918d7c1feec1a35e639d4fc12f580628b2f6088a8b85e0db6e9b9017f551e5b9407ec7f11372d9d5da205745b9acafb407d6ce6adbcd0d
|
DIST glibmm-2.34.1.tar.xz 5670736 SHA256 b425a52c7e178aeaaaffd02c5497bfd68d0cb8be56cef3620558a80dd5d692c4 SHA512 c1cdba5b39172a49ff51d3cb7173cffd22822028c3ee10dca60e2bd3f09ea87d971018e47de78a763ad2ffca53bdb86a69ab156f9de30d66995698fb74f75f99 WHIRLPOOL 3397eae8bd658112fe918d7c1feec1a35e639d4fc12f580628b2f6088a8b85e0db6e9b9017f551e5b9407ec7f11372d9d5da205745b9acafb407d6ce6adbcd0d
|
||||||
|
DIST glibmm-2.36.0.tar.xz 2312740 SHA256 59c54996cccc527f3a257964e7226151175c423f6fb22166e81d65a652f483f3 SHA512 f9e05e0851d2a9b522f97fa60f912009eb55ee42f1d7a115261ce921dcb23fb260753f3216fc55f1a0989ad6a732bc4a7106f3ec589d098d5a1a51bd695b130f WHIRLPOOL 01dbd94ad7c1298d9e21b4077c100042ae1f1039a4e5d2863b81c5eaba2a7499395485feb4baf5a5281a46be2554563b1dc6f4153aaa606b6a8cb9af9411c254
|
||||||
|
@ -0,0 +1,71 @@
|
|||||||
|
# Copyright 1999-2013 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/dev-cpp/glibmm/glibmm-2.36.0.ebuild,v 1.1 2013/04/23 19:20:03 pacho Exp $
|
||||||
|
|
||||||
|
EAPI="5"
|
||||||
|
GCONF_DEBUG="no"
|
||||||
|
|
||||||
|
inherit gnome2
|
||||||
|
|
||||||
|
DESCRIPTION="C++ interface for glib2"
|
||||||
|
HOMEPAGE="http://www.gtkmm.org"
|
||||||
|
|
||||||
|
LICENSE="LGPL-2.1+ GPL-2+" # GPL-2+ applies only to the build system
|
||||||
|
SLOT="2"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x86-solaris"
|
||||||
|
IUSE="doc debug examples test"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
>=dev-libs/libsigc++-2.2.10:2
|
||||||
|
>=dev-libs/glib-2.36.1:2
|
||||||
|
"
|
||||||
|
DEPEND="${RDEPEND}
|
||||||
|
virtual/pkgconfig
|
||||||
|
doc? ( app-doc/doxygen )
|
||||||
|
"
|
||||||
|
# dev-cpp/mm-common needed for eautoreconf
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
if ! use test; then
|
||||||
|
# don't waste time building tests
|
||||||
|
sed 's/^\(SUBDIRS =.*\)tests\(.*\)$/\1\2/' \
|
||||||
|
-i Makefile.am Makefile.in || die "sed 1 failed"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ! use examples; then
|
||||||
|
# don't waste time building examples
|
||||||
|
sed 's/^\(SUBDIRS =.*\)examples\(.*\)$/\1\2/' \
|
||||||
|
-i Makefile.am Makefile.in || die "sed 2 failed"
|
||||||
|
fi
|
||||||
|
|
||||||
|
gnome2_src_prepare
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
gnome2_src_configure \
|
||||||
|
$(use_enable debug debug-refcounting) \
|
||||||
|
$(use_enable doc documentation) \
|
||||||
|
--enable-deprecated-api
|
||||||
|
}
|
||||||
|
|
||||||
|
src_test() {
|
||||||
|
cd "${S}/tests/"
|
||||||
|
default
|
||||||
|
|
||||||
|
for i in */test; do
|
||||||
|
${i} || die "Running tests failed at ${i}"
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
gnome2_src_install
|
||||||
|
|
||||||
|
if ! use doc && ! use examples; then
|
||||||
|
rm -fr "${ED}usr/share/doc/glibmm*"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use examples; then
|
||||||
|
find examples -type d -name '.deps' -exec rm -rf {} \; 2>/dev/null
|
||||||
|
dodoc -r examples
|
||||||
|
fi
|
||||||
|
}
|
@ -1,6 +1,5 @@
|
|||||||
DIST gtkmm-2.24.2.tar.xz 10776640 SHA256 c90c7a29c20dd6d795925bd66ad1ff40be07cea0e4c03f4d6105a8c07448953d SHA512 9f48138641815a40f9c22f6b8785cbcd9e92473c405577dcc6ae29559835d51a17d87fd75518d8043eeec8ce0f643aeb8cfcd68a6df382d0b392da33f6c6f8b7 WHIRLPOOL 2c0408f4b3f5f6296e23a8782a386b80dd70fcb1247309f700bd03c0468c1f9226b501793c4dbc13ba8304be5429d38c4dc4dd8b64cbfcc290f5c23bf3d814e7
|
DIST gtkmm-2.24.2.tar.xz 10776640 SHA256 c90c7a29c20dd6d795925bd66ad1ff40be07cea0e4c03f4d6105a8c07448953d SHA512 9f48138641815a40f9c22f6b8785cbcd9e92473c405577dcc6ae29559835d51a17d87fd75518d8043eeec8ce0f643aeb8cfcd68a6df382d0b392da33f6c6f8b7 WHIRLPOOL 2c0408f4b3f5f6296e23a8782a386b80dd70fcb1247309f700bd03c0468c1f9226b501793c4dbc13ba8304be5429d38c4dc4dd8b64cbfcc290f5c23bf3d814e7
|
||||||
DIST gtkmm-2.24.3.tar.xz 10475704 SHA256 c564a438677174b97d69dd70467cb03c933481006398dc9377417aa6abe02a39 SHA512 7b4686f4ebc0aefa459d557799521381f6f9008e268b7ac433be5d0c155c7ca4650ea527bd54d0ce70eb61c51f1a990cb8c63d30d5417b7c6e5549baf1500206 WHIRLPOOL e8eb3d35975b19a5c51cef33d27e2f9537dddf0a1e2beab01d91e0e4092ef8be8f63da489e5e8ba76e74735225a44fea967065fe676508675c7b6c5c1fb56735
|
DIST gtkmm-2.24.3.tar.xz 10475704 SHA256 c564a438677174b97d69dd70467cb03c933481006398dc9377417aa6abe02a39 SHA512 7b4686f4ebc0aefa459d557799521381f6f9008e268b7ac433be5d0c155c7ca4650ea527bd54d0ce70eb61c51f1a990cb8c63d30d5417b7c6e5549baf1500206 WHIRLPOOL e8eb3d35975b19a5c51cef33d27e2f9537dddf0a1e2beab01d91e0e4092ef8be8f63da489e5e8ba76e74735225a44fea967065fe676508675c7b6c5c1fb56735
|
||||||
DIST gtkmm-3.4.0.tar.xz 9188956 SHA256 42ea4e9acdd37fc3fe7026f8249a5427927b51048adff827bc1312900d6b12e9 SHA512 f98264fe9b4bcd7d926f52408f4a51d7d3191668e95fb9f49c29f88f9a63ef5330ee4d14d021eb4351f3a69646019d9c0963e7065140c5b776e0a7abf9ac62d1 WHIRLPOOL 04ac7aa36198ef4a71b64bd1d750559c499c7970e2e1012a8bb05f7bff6e95f961fa44322904b31af5f17519319a4bf83f1ca302445b9c1cbd3026d73c1ee851
|
|
||||||
DIST gtkmm-3.4.2.tar.xz 10304460 SHA256 760c01bca693d26558eb5eae0cf6c743a6bb453258a633f78de506e3c98262b4 SHA512 b5eeb41c9193a14a968794c0a92c685df45f727f1af6744734d9e30e3a3d0220da9dad6eaf60318024d45aca7eb4d6398ddce1c14b6987310a7838e7d030bda1 WHIRLPOOL ad21ca94022c403ff67c59212002d7346dcb47cc08784b0016be49b286e7ccbf3add84d569850717aa1c66509a04a753fe231b577aaa7801b24717f4fb29d74c
|
DIST gtkmm-3.4.2.tar.xz 10304460 SHA256 760c01bca693d26558eb5eae0cf6c743a6bb453258a633f78de506e3c98262b4 SHA512 b5eeb41c9193a14a968794c0a92c685df45f727f1af6744734d9e30e3a3d0220da9dad6eaf60318024d45aca7eb4d6398ddce1c14b6987310a7838e7d030bda1 WHIRLPOOL ad21ca94022c403ff67c59212002d7346dcb47cc08784b0016be49b286e7ccbf3add84d569850717aa1c66509a04a753fe231b577aaa7801b24717f4fb29d74c
|
||||||
DIST gtkmm-3.6.0.tar.xz 10111820 SHA256 888154d5c8acec083aa15e8dab68d977a393ade7257f0630becfa9a223fa2359 SHA512 a8549be07d48bde75d1ac87210236dcfdfb97b6ef783396aedac0c4c731a4b6fce8d599eb9f3617c381356751d717e63154fb0ec618c51fa7190a7c3509d3cb7 WHIRLPOOL 308a21a0b8e5a7c0ba98ce79afa257358501443cf872fba8f78ad8b4fc2a5f3cced1e604716d6b1854e0efc7fcd5cb1a3d4b90262c25e728221c8c8d37e01adb
|
DIST gtkmm-3.6.0.tar.xz 10111820 SHA256 888154d5c8acec083aa15e8dab68d977a393ade7257f0630becfa9a223fa2359 SHA512 a8549be07d48bde75d1ac87210236dcfdfb97b6ef783396aedac0c4c731a4b6fce8d599eb9f3617c381356751d717e63154fb0ec618c51fa7190a7c3509d3cb7 WHIRLPOOL 308a21a0b8e5a7c0ba98ce79afa257358501443cf872fba8f78ad8b4fc2a5f3cced1e604716d6b1854e0efc7fcd5cb1a3d4b90262c25e728221c8c8d37e01adb
|
||||||
DIST gtkmm-3.7.12.tar.xz 4289332 SHA256 e9a6bf2feac43fd8367e38e4b585cd5790745a6330014cf13c2d3e322a8dd916 SHA512 e5cd1e280da9fecfa96c47c0c026256b60b072ea3071a274af3535f92945f1e12b1f9df341eabfbb1092dfc3f25c499e1ffaaa48286424aa18cf368655e0af30 WHIRLPOOL 4f9a5bf086a3838e274a3de4280ff38461c234d732f4266b8126081c20599f16788f5455a747e08a8d1b42a839eb8764d031bd9b465ff3d1bd22a63d82ca2d2b
|
DIST gtkmm-3.8.0.tar.xz 4311736 SHA256 dbddb143fe671ee321d19de2dbae00c0f67e78ce90447227b23062137b1828bd SHA512 3608de6674fb29a4a1de0600c5de392d84b4d24860aba27b7f6496810f70defa0737b49aebdeeefd47642b22a94212c2d423645ea7ca76a882a036e50214ddfd WHIRLPOOL ee4fbd23cb6219a03056de7cb0891c6e75b7458c8c7987e09f2f33b65cb57fc6a156078f790c51c650c171c78e5a1458baca2d71f15e26b6271436bcb8265874
|
||||||
|
@ -1,68 +0,0 @@
|
|||||||
# Copyright 1999-2012 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/dev-cpp/gtkmm/gtkmm-3.4.0.ebuild,v 1.11 2012/12/09 22:23:58 tetromino Exp $
|
|
||||||
|
|
||||||
EAPI="4"
|
|
||||||
GCONF_DEBUG="no"
|
|
||||||
GNOME2_LA_PUNT="yes"
|
|
||||||
|
|
||||||
inherit autotools eutils gnome2
|
|
||||||
|
|
||||||
DESCRIPTION="C++ interface for GTK+"
|
|
||||||
HOMEPAGE="http://www.gtkmm.org"
|
|
||||||
|
|
||||||
LICENSE="LGPL-2.1+"
|
|
||||||
SLOT="3.0"
|
|
||||||
KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 sh sparc x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~x86-solaris"
|
|
||||||
IUSE="aqua doc examples test wayland +X"
|
|
||||||
REQUIRED_USE="|| ( aqua wayland X )"
|
|
||||||
|
|
||||||
RDEPEND="
|
|
||||||
>=dev-cpp/glibmm-2.32.0:2
|
|
||||||
>=x11-libs/gtk+-3.4.0:3[aqua?,wayland?,X?]
|
|
||||||
>=x11-libs/gdk-pixbuf-2.22.1:2
|
|
||||||
>=dev-cpp/atkmm-2.22.2
|
|
||||||
>=dev-cpp/cairomm-1.9.2.2
|
|
||||||
>=dev-cpp/pangomm-2.27.1:1.4
|
|
||||||
dev-libs/libsigc++:2"
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
virtual/pkgconfig
|
|
||||||
doc? (
|
|
||||||
media-gfx/graphviz
|
|
||||||
dev-libs/libxslt
|
|
||||||
app-doc/doxygen )
|
|
||||||
|
|
||||||
dev-cpp/mm-common"
|
|
||||||
# eautoreconf needs mm-common
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
DOCS="AUTHORS ChangeLog PORTING NEWS README"
|
|
||||||
targets=
|
|
||||||
use X && targets="x11"
|
|
||||||
use aqua && targets="${targets},quartz"
|
|
||||||
use wayland && targets="${targets},wayland"
|
|
||||||
G2CONF="${G2CONF}
|
|
||||||
--enable-api-atkmm
|
|
||||||
--with-gdk-targets=${targets/#,/}
|
|
||||||
$(use_enable doc documentation)"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
if ! use test; then
|
|
||||||
# don't waste time building tests
|
|
||||||
sed 's/^\(SUBDIRS =.*\)tests\(.*\)$/\1\2/' -i Makefile.am Makefile.in \
|
|
||||||
|| die "sed 1 failed"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if ! use examples; then
|
|
||||||
# don't waste time building tests
|
|
||||||
sed 's/^\(SUBDIRS =.*\)demos\(.*\)$/\1\2/' -i Makefile.am Makefile.in \
|
|
||||||
|| die "sed 2 failed"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# https://bugzilla.gnome.org/show_bug.cgi?id=673963
|
|
||||||
epatch "${FILESDIR}/${PN}-3.4.0-automagic-gdk-targets.patch"
|
|
||||||
|
|
||||||
eautoreconf
|
|
||||||
gnome2_src_prepare
|
|
||||||
}
|
|
@ -0,0 +1 @@
|
|||||||
|
DIST lpc21isp_185.tar.gz 54735 SHA256 b85f10265fa83cdaab5b975e7bd53bb47289f1207b45e99cd753ea7a75fb7088 SHA512 585c8f02771fc68719c8a5e6cc4253854dce4f4e0047df8a1d57db273cb51c9d4fcbe1066b079aaec54d7ca189e90710647b95fdb320729753967c265b1ac954 WHIRLPOOL 2fe84d48d355b64939e291f0557f6d8023df5b1a1c8f4152659eb25a9341b809cddcd1d9ff97fa52d6f459ddd4b80972b894421495d8a9705b7bec211c55375a
|
@ -0,0 +1,27 @@
|
|||||||
|
# Copyright 1999-2013 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/dev-embedded/lpc21isp/lpc21isp-1.85.ebuild,v 1.1 2013/04/23 19:53:22 slis Exp $
|
||||||
|
|
||||||
|
EAPI=5
|
||||||
|
|
||||||
|
inherit versionator
|
||||||
|
|
||||||
|
MY_PN="${PN}_$(delete_all_version_separators)"
|
||||||
|
|
||||||
|
DESCRIPTION="In-circuit programming (ISP) tool for the NXP microcontrollers"
|
||||||
|
HOMEPAGE="http://sourceforge.net/projects/lpc21isp/"
|
||||||
|
SRC_URI="mirror://sourceforge/${PN}/${MY_PN}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="LGPL-3"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
IUSE=""
|
||||||
|
|
||||||
|
DEPEND=""
|
||||||
|
RDEPEND=""
|
||||||
|
|
||||||
|
S=${WORKDIR}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
dobin lpc21isp
|
||||||
|
}
|
@ -0,0 +1,8 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||||
|
<pkgmetadata>
|
||||||
|
<maintainer>
|
||||||
|
<email>slis@gentoo.org</email>
|
||||||
|
</maintainer>
|
||||||
|
<longdescription>In-circuit programming (ISP) tool for the NXP (Philips) LPC1100 / LPC1300 / LPC1700 / LPC2000 series ARM7 / Cortex-M0 / Cortex-M3 microcontrollers</longdescription>
|
||||||
|
</pkgmetadata>
|
@ -1,3 +1,4 @@
|
|||||||
DIST v8-3.16.14.9.tar.bz2 10461483 SHA256 a2a69c4915bf2e36d327b4b1edb3d398d4967da31eaa1ae0058b6b6615cd66aa SHA512 424b3d8285244acbb8872fddb90a1e269a35bc8f57c0dba66758d6a853cf75e90a52e4e2d7db4095fe798271c794ac4f99cc40a1dbb99eb1b43d3b5b1878da94 WHIRLPOOL fd7beb7fdb661aa2a04591e7a25fe1c5b39af9bfe9b6e1ab8ed1f4cb6238bb740f3c26d12202c972cdb5552fb02ea31c207304394c095a0839b90b368c436ffc
|
DIST v8-3.16.14.9.tar.bz2 10461483 SHA256 a2a69c4915bf2e36d327b4b1edb3d398d4967da31eaa1ae0058b6b6615cd66aa SHA512 424b3d8285244acbb8872fddb90a1e269a35bc8f57c0dba66758d6a853cf75e90a52e4e2d7db4095fe798271c794ac4f99cc40a1dbb99eb1b43d3b5b1878da94 WHIRLPOOL fd7beb7fdb661aa2a04591e7a25fe1c5b39af9bfe9b6e1ab8ed1f4cb6238bb740f3c26d12202c972cdb5552fb02ea31c207304394c095a0839b90b368c436ffc
|
||||||
DIST v8-3.17.15.3.tar.bz2 10516836 SHA256 bfca163e9e90d9aeaaebe89309245be2fcf697258c273e54c087406ea9dc3ed7 SHA512 8ab664b9801ac0d111cc0af6ada8bf42d458ea7fd951c40d1e7599991d813dc96957c07777ed2f2ad48c4fcf84955293de2e4e1138d4d3ec186e58bc0d2e4c73 WHIRLPOOL 6fca6906330a4e47fa155f7ac61531c5f0f156f7e8b74dafaec1ba8d44e1cc4f72ee77d6f32257c7d23edcc689853d80d5e782b6928e6989f3a08ffd908de009
|
DIST v8-3.17.15.3.tar.bz2 10516836 SHA256 bfca163e9e90d9aeaaebe89309245be2fcf697258c273e54c087406ea9dc3ed7 SHA512 8ab664b9801ac0d111cc0af6ada8bf42d458ea7fd951c40d1e7599991d813dc96957c07777ed2f2ad48c4fcf84955293de2e4e1138d4d3ec186e58bc0d2e4c73 WHIRLPOOL 6fca6906330a4e47fa155f7ac61531c5f0f156f7e8b74dafaec1ba8d44e1cc4f72ee77d6f32257c7d23edcc689853d80d5e782b6928e6989f3a08ffd908de009
|
||||||
DIST v8-3.17.16.2.tar.bz2 10519702 SHA256 c0695dd9d36f6a8e0b5fb110baf8d174c76eb7f0d26acc00d4f42179e26c4058 SHA512 97da0af9cca0ca47340dba2d088506563d7b66688f60fbca9dd76b8fc294af0b9d99ab2930679959e5931305dd4ed657e7dc9e47a31f04c56267f3f6cb5938e8 WHIRLPOOL 985013f35bcb9e50f7b4dadc55ecaeadbacf05bfdc934c86bb584a1d108b2cdfc411041b978244ac119f1a81139668aeb0ac3146c68ce05b50e25af22eaa241e
|
DIST v8-3.17.16.2.tar.bz2 10519702 SHA256 c0695dd9d36f6a8e0b5fb110baf8d174c76eb7f0d26acc00d4f42179e26c4058 SHA512 97da0af9cca0ca47340dba2d088506563d7b66688f60fbca9dd76b8fc294af0b9d99ab2930679959e5931305dd4ed657e7dc9e47a31f04c56267f3f6cb5938e8 WHIRLPOOL 985013f35bcb9e50f7b4dadc55ecaeadbacf05bfdc934c86bb584a1d108b2cdfc411041b978244ac119f1a81139668aeb0ac3146c68ce05b50e25af22eaa241e
|
||||||
|
DIST v8-3.18.1.tar.bz2 10504056 SHA256 5b051b1475dca9e87017d1d92d29082a63631d939fcb3f6386364afce4d6bc52 SHA512 f2c670560b8e8161f4a0ea8b25d7b226e743245371f2c2e9d5a339f827560c618af7d5a5f73309020d87a01d8ccf9ae8fdf1808171a1de7cb57227e1f4f2a8aa WHIRLPOOL a797ab51ccec8cb9c948bc946f738417c9badd99aa4b6bc7e147ab11211ef9024004c20bee4e3ac7548772502023b71ecab1cddc71e8571a07248e3e76c534d3
|
||||||
|
@ -0,0 +1,144 @@
|
|||||||
|
# Copyright 1999-2013 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/dev-lang/v8/v8-3.18.1.ebuild,v 1.1 2013/04/23 00:23:55 phajdan.jr Exp $
|
||||||
|
|
||||||
|
EAPI="5"
|
||||||
|
PYTHON_COMPAT=( python2_{6,7} )
|
||||||
|
|
||||||
|
inherit chromium eutils multilib multiprocessing pax-utils python-any-r1 \
|
||||||
|
toolchain-funcs versionator
|
||||||
|
|
||||||
|
DESCRIPTION="Google's open source JavaScript engine"
|
||||||
|
HOMEPAGE="http://code.google.com/p/v8"
|
||||||
|
SRC_URI="https://commondatastorage.googleapis.com/chromium-browser-official/${P}.tar.bz2"
|
||||||
|
LICENSE="BSD"
|
||||||
|
|
||||||
|
soname_version="${PV}"
|
||||||
|
SLOT="0/${soname_version}"
|
||||||
|
KEYWORDS="~amd64 ~arm ~x86 ~x86-fbsd ~x64-macos ~x86-macos"
|
||||||
|
IUSE="neon readline"
|
||||||
|
|
||||||
|
RDEPEND="readline? ( sys-libs/readline:0 )"
|
||||||
|
DEPEND="${PYTHON_DEPS}
|
||||||
|
${RDEPEND}"
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
tc-export AR CC CXX RANLIB
|
||||||
|
export LINK=${CXX}
|
||||||
|
|
||||||
|
local myconf=""
|
||||||
|
|
||||||
|
# Always build v8 as a shared library with proper SONAME.
|
||||||
|
myconf+=" -Dcomponent=shared_library -Dsoname_version=${soname_version}"
|
||||||
|
|
||||||
|
# Use target arch detection logic from bug #354601.
|
||||||
|
case ${CHOST} in
|
||||||
|
i?86-*)
|
||||||
|
myarch="ia32"
|
||||||
|
myconf+=" -Dv8_target_arch=ia32" ;;
|
||||||
|
x86_64-*)
|
||||||
|
if [[ $ABI = x86 ]] ; then
|
||||||
|
myarch="ia32"
|
||||||
|
myconf+=" -Dv8_target_arch=ia32"
|
||||||
|
else
|
||||||
|
myarch="x64"
|
||||||
|
myconf+=" -Dv8_target_arch=x64"
|
||||||
|
fi ;;
|
||||||
|
arm*-*)
|
||||||
|
myarch="arm"
|
||||||
|
myconf+=" -Dv8_target_arch=arm -Darm_fpu="
|
||||||
|
if [[ ${CHOST} == *-hardfloat-* ]] ; then
|
||||||
|
myconf+=" -Dv8_use_arm_eabi_hardfloat=true"
|
||||||
|
else
|
||||||
|
myconf+=" -Dv8_use_arm_eabi_hardfloat=false"
|
||||||
|
fi
|
||||||
|
if [[ ${CHOST} == armv7*-* ]] ; then
|
||||||
|
myconf+=" -Darmv7=1"
|
||||||
|
else
|
||||||
|
myconf+=" -Darmv7=0"
|
||||||
|
fi
|
||||||
|
myconf+=" $(gyp_use neon arm_neon)" ;;
|
||||||
|
*) die "Unrecognized CHOST: ${CHOST}"
|
||||||
|
esac
|
||||||
|
|
||||||
|
myconf+=" $(gyp_use readline console readline dumb)"
|
||||||
|
|
||||||
|
# Make sure that -Werror doesn't get added to CFLAGS by the build system.
|
||||||
|
# Depending on GCC version the warnings are different and we don't
|
||||||
|
# want the build to fail because of that.
|
||||||
|
myconf+=" -Dwerror="
|
||||||
|
|
||||||
|
EGYP_CHROMIUM_COMMAND=build/gyp_v8 egyp_chromium ${myconf} || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
local makeargs=(
|
||||||
|
-C out
|
||||||
|
builddir="${S}/out/Release"
|
||||||
|
V=1
|
||||||
|
BUILDTYPE=Release
|
||||||
|
)
|
||||||
|
|
||||||
|
# Build mksnapshot so we can pax-mark it.
|
||||||
|
emake "${makeargs[@]}" mksnapshot.${myarch}
|
||||||
|
pax-mark m out/Release/mksnapshot
|
||||||
|
|
||||||
|
# Build everything else.
|
||||||
|
emake "${makeargs[@]}"
|
||||||
|
pax-mark m out/Release/{cctest,d8}
|
||||||
|
}
|
||||||
|
|
||||||
|
src_test() {
|
||||||
|
LD_LIBRARY_PATH=out/Release/lib.target tools/run-tests.py \
|
||||||
|
-j$(makeopts_jobs) \
|
||||||
|
--no-presubmit \
|
||||||
|
--outdir=out \
|
||||||
|
--buildbot \
|
||||||
|
--arch=native \
|
||||||
|
--mode=Release \
|
||||||
|
--progress=dots || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
insinto /usr
|
||||||
|
doins -r include
|
||||||
|
|
||||||
|
if [[ ${CHOST} == *-darwin* ]] ; then
|
||||||
|
# buildsystem is too horrific to get this built correctly
|
||||||
|
mkdir -p out/Release/lib.target || die
|
||||||
|
mv out/Release/libv8.so.${soname_version} \
|
||||||
|
out/Release/lib.target/libv8$(get_libname ${soname_version}) || die
|
||||||
|
install_name_tool \
|
||||||
|
-id "${EPREFIX}"/usr/$(get_libdir)/libv8$(get_libname) \
|
||||||
|
out/Release/lib.target/libv8$(get_libname ${soname_version}) \
|
||||||
|
|| die
|
||||||
|
install_name_tool \
|
||||||
|
-change \
|
||||||
|
/usr/local/lib/libv8.so.${soname_version} \
|
||||||
|
"${EPREFIX}"/usr/$(get_libdir)/libv8$(get_libname) \
|
||||||
|
out/Release/d8 || die
|
||||||
|
fi
|
||||||
|
|
||||||
|
dobin out/Release/d8
|
||||||
|
pax-mark m "${ED}usr/bin/d8"
|
||||||
|
|
||||||
|
dolib out/Release/lib.target/libv8$(get_libname ${soname_version})
|
||||||
|
dosym libv8$(get_libname ${soname_version}) /usr/$(get_libdir)/libv8$(get_libname)
|
||||||
|
|
||||||
|
dodoc AUTHORS ChangeLog || die
|
||||||
|
}
|
||||||
|
|
||||||
|
# TODO: remove functions below after they are removed from chromium.eclass'
|
||||||
|
# EXPORT_FUNCTIONS .
|
||||||
|
|
||||||
|
pkg_preinst() {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postrm() {
|
||||||
|
return
|
||||||
|
}
|
@ -1,35 +0,0 @@
|
|||||||
# Copyright 1999-2013 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/dev-lang/vala/vala-0.20.0.ebuild,v 1.3 2013/03/30 22:32:13 eva Exp $
|
|
||||||
|
|
||||||
EAPI="5"
|
|
||||||
GCONF_DEBUG="no"
|
|
||||||
|
|
||||||
inherit gnome2
|
|
||||||
|
|
||||||
DESCRIPTION="Vala - Compiler for the GObject type system"
|
|
||||||
HOMEPAGE="http://live.gnome.org/Vala"
|
|
||||||
|
|
||||||
LICENSE="LGPL-2.1"
|
|
||||||
SLOT="0.20"
|
|
||||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~arm-linux ~x86-linux"
|
|
||||||
IUSE="test +vapigen"
|
|
||||||
|
|
||||||
RDEPEND=">=dev-libs/glib-2.18:2
|
|
||||||
>=dev-libs/vala-common-${PV}"
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
!${CATEGORY}/${PN}:0
|
|
||||||
dev-libs/libxslt
|
|
||||||
sys-devel/flex
|
|
||||||
virtual/pkgconfig
|
|
||||||
virtual/yacc
|
|
||||||
test? (
|
|
||||||
dev-libs/dbus-glib
|
|
||||||
>=dev-libs/glib-2.26:2 )"
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
DOCS="AUTHORS ChangeLog MAINTAINERS NEWS README"
|
|
||||||
gnome2_src_configure \
|
|
||||||
--disable-unversioned \
|
|
||||||
$(use_enable vapigen)
|
|
||||||
}
|
|
@ -1,9 +1,8 @@
|
|||||||
DIST glib-1.2.10-r1-as-needed.patch.bz2 9099 SHA256 3bb8c45706f97b526da851061c89618bc258fa61f9100802c1340548e4bb2731 SHA512 e65c7f66254eae22deaa67bf621ebd1d7af897b93d93ba6cffaa4ce9894cf14c140e6888d877b6b36fcea8be1b8d1ef4fcc7ec1719bd23b1cc6fd662876c70ae WHIRLPOOL 20254678a86595353058ee8dc81a02e4ae7bb16ba9ba34e036fe2e99d3fffa25c825f8961bdeb5fa50c49582ce37e65684e414631c74653c4523c2baee34c341
|
DIST glib-1.2.10-r1-as-needed.patch.bz2 9099 SHA256 3bb8c45706f97b526da851061c89618bc258fa61f9100802c1340548e4bb2731 SHA512 e65c7f66254eae22deaa67bf621ebd1d7af897b93d93ba6cffaa4ce9894cf14c140e6888d877b6b36fcea8be1b8d1ef4fcc7ec1719bd23b1cc6fd662876c70ae WHIRLPOOL 20254678a86595353058ee8dc81a02e4ae7bb16ba9ba34e036fe2e99d3fffa25c825f8961bdeb5fa50c49582ce37e65684e414631c74653c4523c2baee34c341
|
||||||
DIST glib-1.2.10.tar.gz 421480 SHA256 6e1ce7eedae713b11db82f11434d455d8a1379f783a79812cd2e05fc024a8d9f SHA512 4452b741382194d4ca425f084fa60e1a9e30040ac2e839c9136047d0461cf4b1ebcc16aac4e65998d1b9329ead8f617966b3d09317a83634f14d556a7e14b7a8 WHIRLPOOL 478957ce8e49228d022bae50b042cdfc6d522d0d4880a0328b5695471295450c81c5e186e1760e56e317a4c4c95aabc5f2010d7a9b912fc451d04e14610e7dca
|
DIST glib-1.2.10.tar.gz 421480 SHA256 6e1ce7eedae713b11db82f11434d455d8a1379f783a79812cd2e05fc024a8d9f SHA512 4452b741382194d4ca425f084fa60e1a9e30040ac2e839c9136047d0461cf4b1ebcc16aac4e65998d1b9329ead8f617966b3d09317a83634f14d556a7e14b7a8 WHIRLPOOL 478957ce8e49228d022bae50b042cdfc6d522d0d4880a0328b5695471295450c81c5e186e1760e56e317a4c4c95aabc5f2010d7a9b912fc451d04e14610e7dca
|
||||||
DIST glib-2.30.3.tar.xz 5642448 SHA256 e6cbb27c71c445993346e785e8609cc75cea2941e32312e544872feba572dd27 SHA512 9f212b2c94c8c76ed619a1a97515ffc4c71dd39a982852cc9db600ca3034be1fb646d657dd39831f2fe80a81972400b977ea59fa81923dfe646158c9f1ab8843 WHIRLPOOL 145e20955b0ce2b44e05833bd508ac03a0399fc4d4c1c551c6a05809e6922cd57c37c5b32ebbe80f7ba0a21660059d7cb4837fa233de37af6c12cd0bc3a7afeb
|
|
||||||
DIST glib-2.32.4-AS_IF-patches.tar.xz 8584 SHA256 c61a87bbed8b09148f70f2651696430ab262d8ee905ebe2e0e963bb9038c5545 SHA512 cea825c379ea9014014f8a6f3a9fcf228e6b4245c649df4d86f6d86d1d655fd927ef1115fd66521cc48b2929d8cd504a284c7a8fb5ff38dc2b83ac4140655049 WHIRLPOOL e778094ad8ebe6fdc236942c21ee8ce2266712a08672b521f931159dd81d3452fcb8b6556c98c82b60548b1d9703a3ff332d02970a01565b6f5c4bcd02e74b46
|
DIST glib-2.32.4-AS_IF-patches.tar.xz 8584 SHA256 c61a87bbed8b09148f70f2651696430ab262d8ee905ebe2e0e963bb9038c5545 SHA512 cea825c379ea9014014f8a6f3a9fcf228e6b4245c649df4d86f6d86d1d655fd927ef1115fd66521cc48b2929d8cd504a284c7a8fb5ff38dc2b83ac4140655049 WHIRLPOOL e778094ad8ebe6fdc236942c21ee8ce2266712a08672b521f931159dd81d3452fcb8b6556c98c82b60548b1d9703a3ff332d02970a01565b6f5c4bcd02e74b46
|
||||||
DIST glib-2.32.4.tar.xz 6178556 SHA256 a5d742a4fda22fb6975a8c0cfcd2499dd1c809b8afd4ef709bda4d11b167fae2 SHA512 bc8b2d6afae7635f940065eca3e854ee171812c7b582d55313db11d28875495dbf41fc0a260347b30f7490daa65ccc377d8a2d60bb3a26d07997606d8e3d989f WHIRLPOOL 35aec94088acff460685c0b1bb2e6fcffadb0f9f0044b93f3fa042ed82dd52efb5e56022575c0ebcfda4230d38edc26a916623f0bfcbfc8e1c6b76a3133d43bc
|
DIST glib-2.32.4.tar.xz 6178556 SHA256 a5d742a4fda22fb6975a8c0cfcd2499dd1c809b8afd4ef709bda4d11b167fae2 SHA512 bc8b2d6afae7635f940065eca3e854ee171812c7b582d55313db11d28875495dbf41fc0a260347b30f7490daa65ccc377d8a2d60bb3a26d07997606d8e3d989f WHIRLPOOL 35aec94088acff460685c0b1bb2e6fcffadb0f9f0044b93f3fa042ed82dd52efb5e56022575c0ebcfda4230d38edc26a916623f0bfcbfc8e1c6b76a3133d43bc
|
||||||
DIST glib-2.34.2.tar.xz 6367740 SHA256 2d99a8309cdd0c584bd5386a49265fb19ac64575fe108fd901d6f26c8d73c708 SHA512 986a064968bd6681e8166704c7caa8e467a99ba24b035874fbd21e1374a56f24fc78325ab5776e60ffe6f5555e9104fcc89ddf2e3d3c9ec31906cbaaf1f7a827 WHIRLPOOL 81556274b0ab62ba1bc4846f857566971f3fca305ab75ca4163a5071505d7223d24743c629cc53383ffb329ba401721abcb7ade57d42bf9c2ef4debb23b16660
|
|
||||||
DIST glib-2.34.3.tar.xz 6334872 SHA256 855fcbf87cb93065b488358e351774d8a39177281023bae58c286f41612658a7 SHA512 2382e09159da2ef47384a3e52622f139577af69d6aba86ea1636f2b6b23b9f6bf89967f29394fd7f93d0528e2c58ae015864aa58a3e3e4f504c7a268b2ef4a75 WHIRLPOOL 296f29666bdd38faae41a1b0b7875dd5fb6ac23d5d27282658e73bbb614db944b3a92d5334ddcca19f959e4c5ef2bf20a5b0f19390558645f986afc2f84edd4d
|
DIST glib-2.34.3.tar.xz 6334872 SHA256 855fcbf87cb93065b488358e351774d8a39177281023bae58c286f41612658a7 SHA512 2382e09159da2ef47384a3e52622f139577af69d6aba86ea1636f2b6b23b9f6bf89967f29394fd7f93d0528e2c58ae015864aa58a3e3e4f504c7a268b2ef4a75 WHIRLPOOL 296f29666bdd38faae41a1b0b7875dd5fb6ac23d5d27282658e73bbb614db944b3a92d5334ddcca19f959e4c5ef2bf20a5b0f19390558645f986afc2f84edd4d
|
||||||
DIST glib-2.36.0.tar.xz 6508276 SHA256 455a8abe8692c5174bcc7ffa15b96a7521a2f2f9fb47594405927c35cb9bb227 SHA512 86402c22b3df419112aab82bfe2c2a598992c6eadf941375b6f4f1840f9004491fafcbd95dc372262cddb29064abba54c640b1dbf281ff75c0ea209683876530 WHIRLPOOL 9db755e0a6070a63b78ebc71b6c54279faeffec57f9392c329fdbd105bfe5f74caff134c0aef7c93a542eed71e0465f7c1a42c4277ad7a8d42cf837fdc1f434c
|
DIST glib-2.36.0.tar.xz 6508276 SHA256 455a8abe8692c5174bcc7ffa15b96a7521a2f2f9fb47594405927c35cb9bb227 SHA512 86402c22b3df419112aab82bfe2c2a598992c6eadf941375b6f4f1840f9004491fafcbd95dc372262cddb29064abba54c640b1dbf281ff75c0ea209683876530 WHIRLPOOL 9db755e0a6070a63b78ebc71b6c54279faeffec57f9392c329fdbd105bfe5f74caff134c0aef7c93a542eed71e0465f7c1a42c4277ad7a8d42cf837fdc1f434c
|
||||||
|
DIST glib-2.36.1.tar.xz 6524408 SHA256 7de37586794e92c024feebe5d306bf5f245fef4803c3666af1ae8dac6ee10b24 SHA512 e738ef537fc8b05f535a42a46c3e5cf8d7c9c3aed788adea1bfd924e6031e6f3e8366850a3a1a0ea2c2a4c5e54f08eacf6cccbf32fb8a361b62a6caf9c4b7852 WHIRLPOOL 05298f71ff63b458ddc7e67c7ce0ab800109068c6bb2b0bff5ccfd76d8ed29cb5568d8a2953b71947bb0385033c3564467f9adfa377fc65c27eb765f71f71ef3
|
||||||
DIST pkg-config-0.26.tar.gz 396399 SHA256 94c1936a797c930fb3e4e5a154165b6268caba22b32d24083dd4c492a533c8af SHA512 9390d5918dd4ac520b914d2330aa7cae2587ca7b21b03bc88372fd5dbbd78e33eeb3fca39fcdb6dd10113658f03118a1c8829149c7029eb0dd80348d100170a4 WHIRLPOOL f535946a02192a9bffc7be0fae454e25aa86af8bac7f47622d52ed13f77f1ba05ff9b5693b2a501981e3991e4e1595eced22dee4ab748b310baa7d57267a62a7
|
DIST pkg-config-0.26.tar.gz 396399 SHA256 94c1936a797c930fb3e4e5a154165b6268caba22b32d24083dd4c492a533c8af SHA512 9390d5918dd4ac520b914d2330aa7cae2587ca7b21b03bc88372fd5dbbd78e33eeb3fca39fcdb6dd10113658f03118a1c8829149c7029eb0dd80348d100170a4 WHIRLPOOL f535946a02192a9bffc7be0fae454e25aa86af8bac7f47622d52ed13f77f1ba05ff9b5693b2a501981e3991e4e1595eced22dee4ab748b310baa7d57267a62a7
|
||||||
|
@ -1,39 +0,0 @@
|
|||||||
From Debian, this one is needed for gcc < 4.1...
|
|
||||||
|
|
||||||
--- glib-2.10.0/glib/gatomic.c 2006-02-24 14:02:51.000000000 +0000
|
|
||||||
+++ glib-2.10.0/glib/gatomic.c 2006-03-06 18:12:06.000000000 +0000
|
|
||||||
@@ -414,14 +414,14 @@
|
|
||||||
g_atomic_int_exchange_and_add (volatile gint *atomic,
|
|
||||||
gint val)
|
|
||||||
{
|
|
||||||
- return __sync_fetch_and_add (atomic, val);
|
|
||||||
+ return __sync_fetch_and_add_si (atomic, val);
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
|
||||||
g_atomic_int_add (volatile gint *atomic,
|
|
||||||
gint val)
|
|
||||||
{
|
|
||||||
- __sync_fetch_and_add (atomic, val);
|
|
||||||
+ __sync_fetch_and_add_si (atomic, val);
|
|
||||||
}
|
|
||||||
|
|
||||||
gboolean
|
|
||||||
@@ -429,7 +429,7 @@
|
|
||||||
gint oldval,
|
|
||||||
gint newval)
|
|
||||||
{
|
|
||||||
- return __sync_bool_compare_and_swap (atomic, oldval, newval);
|
|
||||||
+ return __sync_bool_compare_and_swap_si (atomic, oldval, newval);
|
|
||||||
}
|
|
||||||
|
|
||||||
gboolean
|
|
||||||
@@ -437,7 +437,7 @@
|
|
||||||
gpointer oldval,
|
|
||||||
gpointer newval)
|
|
||||||
{
|
|
||||||
- return __sync_bool_compare_and_swap ((long *)atomic,
|
|
||||||
+ return __sync_bool_compare_and_swap_di ((long *)atomic,
|
|
||||||
(long)oldval, (long)newval);
|
|
||||||
}
|
|
||||||
|
|
@ -1,20 +0,0 @@
|
|||||||
Temporary workaround for gio tests failure when ran without FEATURES=userpriv
|
|
||||||
until upstream bug #552912 is fixed
|
|
||||||
|
|
||||||
--- gio/tests/live-g-file.c.orig 2008-09-25 05:44:12.848556034 +0300
|
|
||||||
+++ gio/tests/live-g-file.c 2008-09-25 06:12:34.248726237 +0300
|
|
||||||
@@ -769,11 +769,14 @@
|
|
||||||
if (posix_compat)
|
|
||||||
{
|
|
||||||
/* target directory is not accessible (no execute flag) */
|
|
||||||
+#if 0
|
|
||||||
+/* Fails when ran as root */
|
|
||||||
do_copy_move (root, item, TEST_DIR_NO_ACCESS,
|
|
||||||
TEST_NO_ACCESS);
|
|
||||||
/* target directory is readonly */
|
|
||||||
do_copy_move (root, item, TEST_DIR_NO_WRITE,
|
|
||||||
TEST_NO_ACCESS);
|
|
||||||
+#endif
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,75 +0,0 @@
|
|||||||
Use an external gdbus-codegen package
|
|
||||||
|
|
||||||
--- configure.ac
|
|
||||||
+++ configure.ac
|
|
||||||
@@ -367,7 +367,7 @@
|
|
||||||
AC_SUBST(PERL_PATH)
|
|
||||||
|
|
||||||
# Need suitable python path for greport
|
|
||||||
-AM_PATH_PYTHON(2.5,,PYTHON="/usr/bin/env python2.5")
|
|
||||||
+# AM_PATH_PYTHON(2.5,,PYTHON="/usr/bin/env python2.5")
|
|
||||||
|
|
||||||
|
|
||||||
dnl ***********************
|
|
||||||
@@ -3857,8 +3857,6 @@
|
|
||||||
gthread/Makefile
|
|
||||||
gthread/tests/Makefile
|
|
||||||
gio/Makefile
|
|
||||||
-gio/gdbus-2.0/codegen/Makefile
|
|
||||||
-gio/gdbus-2.0/codegen/config.py
|
|
||||||
gio/xdgmime/Makefile
|
|
||||||
gio/inotify/Makefile
|
|
||||||
gio/libasyncns/Makefile
|
|
||||||
--- docs/reference/gio/Makefile.am
|
|
||||||
+++ docs/reference/gio/Makefile.am
|
|
||||||
@@ -138,8 +138,7 @@
|
|
||||||
gio-querymodules.1 \
|
|
||||||
glib-compile-schemas.1 \
|
|
||||||
gsettings.1 \
|
|
||||||
- gdbus.1 \
|
|
||||||
- gdbus-codegen.1
|
|
||||||
+ gdbus.1
|
|
||||||
|
|
||||||
if ENABLE_MAN
|
|
||||||
|
|
||||||
--- gio/Makefile.am
|
|
||||||
+++ gio/Makefile.am
|
|
||||||
@@ -2,7 +2,7 @@
|
|
||||||
|
|
||||||
NULL =
|
|
||||||
|
|
||||||
-SUBDIRS = gdbus-2.0/codegen
|
|
||||||
+SUBDIRS =
|
|
||||||
|
|
||||||
if OS_UNIX
|
|
||||||
SUBDIRS += libasyncns xdgmime
|
|
||||||
--- gio/tests/gdbus-object-manager-example/Makefile.am
|
|
||||||
+++ gio/tests/gdbus-object-manager-example/Makefile.am
|
|
||||||
@@ -21,10 +21,8 @@
|
|
||||||
gdbus-example-objectmanager-generated-org.gtk.GDBus.Example.ObjectManager.Cat.xml \
|
|
||||||
$(NULL)
|
|
||||||
|
|
||||||
-$(GDBUS_GENERATED) : gdbus-example-objectmanager.xml Makefile $(top_builddir)/gio/gdbus-2.0/codegen/gdbus-codegen
|
|
||||||
- $(AM_V_GEN) UNINSTALLED_GLIB_SRCDIR=$(top_srcdir) \
|
|
||||||
- UNINSTALLED_GLIB_BUILDDIR=$(top_builddir) \
|
|
||||||
- $(PYTHON) $(top_builddir)/gio/gdbus-2.0/codegen/gdbus-codegen \
|
|
||||||
+$(GDBUS_GENERATED) : gdbus-example-objectmanager.xml Makefile
|
|
||||||
+ $(AM_V_GEN) gdbus-codegen \
|
|
||||||
--interface-prefix org.gtk.GDBus.Example.ObjectManager. \
|
|
||||||
--c-namespace Example \
|
|
||||||
--c-generate-object-manager \
|
|
||||||
--- gio/tests/Makefile.am
|
|
||||||
+++ gio/tests/Makefile.am
|
|
||||||
@@ -266,10 +266,8 @@
|
|
||||||
gdbus_close_pending_LDADD = $(progs_ldadd)
|
|
||||||
|
|
||||||
if OS_UNIX
|
|
||||||
-gdbus-test-codegen-generated.h gdbus-test-codegen-generated.c : test-codegen.xml Makefile $(top_builddir)/gio/gdbus-2.0/codegen/gdbus-codegen
|
|
||||||
- $(AM_V_GEN) UNINSTALLED_GLIB_SRCDIR=$(top_srcdir) \
|
|
||||||
- UNINSTALLED_GLIB_BUILDDIR=$(top_builddir) \
|
|
||||||
- $(PYTHON) $(top_builddir)/gio/gdbus-2.0/codegen/gdbus-codegen \
|
|
||||||
+gdbus-test-codegen-generated.h gdbus-test-codegen-generated.c : test-codegen.xml Makefile
|
|
||||||
+ $(AM_V_GEN) gdbus-codegen \
|
|
||||||
--interface-prefix org.project. \
|
|
||||||
--generate-c-code gdbus-test-codegen-generated \
|
|
||||||
--c-generate-object-manager \
|
|
@ -1,61 +0,0 @@
|
|||||||
Description: Handle the G_HOME environment variable to override the passwd entry
|
|
||||||
This will allow to fix various kinds of build failures due to restricted
|
|
||||||
build environments.
|
|
||||||
Author: Josselin Mouette <joss@debian.org>
|
|
||||||
Origin: vendor
|
|
||||||
|
|
||||||
--- a/docs/reference/glib/running.sgml
|
|
||||||
+++ b/docs/reference/glib/running.sgml
|
|
||||||
@@ -213,6 +213,22 @@
|
|
||||||
</para>
|
|
||||||
</formalpara>
|
|
||||||
|
|
||||||
+<formalpara id="G_HOME">
|
|
||||||
+ <title><envar>G_HOME</envar></title>
|
|
||||||
+
|
|
||||||
+ <para>
|
|
||||||
+ For various reasons, GLib applications ignore the <envar>HOME</envar>
|
|
||||||
+ environment variable on Unix systems and will use the user directory
|
|
||||||
+ as specified by the <filename>passwd</filename> entry, which is more
|
|
||||||
+ reliable.
|
|
||||||
+ </para>
|
|
||||||
+ <para>
|
|
||||||
+ The <envar>G_HOME</envar> environment variable will override any
|
|
||||||
+ other setting for the home directory. It is not meant for daily usage,
|
|
||||||
+ but it is useful in testing or building environments.
|
|
||||||
+ </para>
|
|
||||||
+</formalpara>
|
|
||||||
+
|
|
||||||
</refsect2>
|
|
||||||
|
|
||||||
<refsect2 id="setlocale">
|
|
||||||
--- a/glib/gutils.c
|
|
||||||
+++ b/glib/gutils.c
|
|
||||||
@@ -1626,11 +1626,14 @@
|
|
||||||
}
|
|
||||||
#endif /* !G_OS_WIN32 */
|
|
||||||
|
|
||||||
+ g_home_dir = g_strdup (g_getenv ("G_HOME"));
|
|
||||||
+
|
|
||||||
#ifdef G_OS_WIN32
|
|
||||||
/* We check $HOME first for Win32, though it is a last resort for Unix
|
|
||||||
* where we prefer the results of getpwuid().
|
|
||||||
*/
|
|
||||||
- g_home_dir = g_strdup (g_getenv ("HOME"));
|
|
||||||
+ if (!g_home_dir)
|
|
||||||
+ g_home_dir = g_strdup (g_getenv ("HOME"));
|
|
||||||
|
|
||||||
/* Only believe HOME if it is an absolute path and exists */
|
|
||||||
if (g_home_dir)
|
|
||||||
@@ -1926,6 +1929,11 @@
|
|
||||||
* homedir = g_get_home_dir (<!-- -->);
|
|
||||||
* ]|
|
|
||||||
*
|
|
||||||
+ * However, to allow changing this value for testing and development
|
|
||||||
+ * purposes, the value of the <envar>G_HOME</envar> environment
|
|
||||||
+ * variable, if set, will override the <filename>passwd</filename>
|
|
||||||
+ * entry.
|
|
||||||
+ *
|
|
||||||
* Returns: the current user's home directory
|
|
||||||
*/
|
|
||||||
G_CONST_RETURN gchar*
|
|
@ -1,32 +0,0 @@
|
|||||||
From 1c9eceaccb6e6c4339cd6951cf53fbd60ae80b8b Mon Sep 17 00:00:00 2001
|
|
||||||
From: Alexandre Rostovtsev <tetromino@gentoo.org>
|
|
||||||
Date: Mon, 14 Nov 2011 01:43:22 -0500
|
|
||||||
Subject: [PATCH] _g_dbus_get_machine_id(): check /etc/machine-id too
|
|
||||||
|
|
||||||
machine-id can be in /etc or in /var/lib/dbus.
|
|
||||||
|
|
||||||
https://bugzilla.gnome.org/show_bug.cgi?id=663928
|
|
||||||
---
|
|
||||||
gio/gdbusprivate.c | 6 +++++-
|
|
||||||
1 files changed, 5 insertions(+), 1 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/gio/gdbusprivate.c b/gio/gdbusprivate.c
|
|
||||||
index 55ac883..68c3ddf 100644
|
|
||||||
--- a/gio/gdbusprivate.c
|
|
||||||
+++ b/gio/gdbusprivate.c
|
|
||||||
@@ -1985,7 +1985,11 @@ _g_dbus_get_machine_id (GError **error)
|
|
||||||
gchar *ret;
|
|
||||||
/* TODO: use PACKAGE_LOCALSTATEDIR ? */
|
|
||||||
ret = NULL;
|
|
||||||
- if (!g_file_get_contents ("/var/lib/dbus/machine-id",
|
|
||||||
+ if (!g_file_get_contents ("/etc/machine-id",
|
|
||||||
+ &ret,
|
|
||||||
+ NULL,
|
|
||||||
+ NULL) &&
|
|
||||||
+ !g_file_get_contents ("/var/lib/dbus/machine-id",
|
|
||||||
&ret,
|
|
||||||
NULL,
|
|
||||||
error))
|
|
||||||
--
|
|
||||||
1.7.8.rc1
|
|
||||||
|
|
@ -1,36 +0,0 @@
|
|||||||
Fix from upstream for building with C++ compilers:
|
|
||||||
https://bugzilla.gnome.org/show_bug.cgi?id=663880
|
|
||||||
|
|
||||||
From 5d9f05eef147f17d71e38c9fba2e3f622c9ed21b Mon Sep 17 00:00:00 2001
|
|
||||||
From: Matthias Clasen <mclasen@redhat.com>
|
|
||||||
Date: Sat, 12 Nov 2011 10:26:31 -0500
|
|
||||||
Subject: [PATCH] glib-unix.h: Add G_BEGIN/END_DECLS
|
|
||||||
|
|
||||||
The omission was pointed out in bug 663880.
|
|
||||||
---
|
|
||||||
glib/glib-unix.h | 6 +++++-
|
|
||||||
1 files changed, 5 insertions(+), 1 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/glib/glib-unix.h b/glib/glib-unix.h
|
|
||||||
index 9642b5c..7be37f0 100644
|
|
||||||
--- a/glib/glib-unix.h
|
|
||||||
+++ b/glib/glib-unix.h
|
|
||||||
@@ -38,6 +38,8 @@
|
|
||||||
#error "This header may only be used on UNIX"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
+G_BEGIN_DECLS
|
|
||||||
+
|
|
||||||
/**
|
|
||||||
* G_UNIX_ERROR:
|
|
||||||
*
|
|
||||||
@@ -77,4 +79,6 @@ guint g_unix_signal_add (gint signum,
|
|
||||||
GSourceFunc handler,
|
|
||||||
gpointer user_data);
|
|
||||||
|
|
||||||
-#endif
|
|
||||||
+G_END_DECLS
|
|
||||||
+
|
|
||||||
+#endif /* __G_UNIX_H__ */
|
|
||||||
--
|
|
||||||
1.7.7.1
|
|
@ -1,19 +0,0 @@
|
|||||||
Tests fail when upgrading glib from 2.22 to 2.24 if sys-devel/gdb is installed
|
|
||||||
because gdb is run on .libs/assert-msg-test before LD_LIBRARY_PATH is set. This
|
|
||||||
causes gdb to use the system-wide glib instead, and fail on the test.
|
|
||||||
|
|
||||||
This patch exports LD_LIBRARY_PATH before running gdb
|
|
||||||
|
|
||||||
https://bugzilla.gnome.org/621368
|
|
||||||
|
|
||||||
---
|
|
||||||
--- tests/run-assert-msg-test.sh
|
|
||||||
+++ tests/run-assert-msg-test.sh
|
|
||||||
@@ -34,6 +34,7 @@ if [ -e ".libs/lt-$msg_test" ]; then
|
|
||||||
msg_test="lt-$msg_test"
|
|
||||||
fi
|
|
||||||
echo_v "Running gdb on assert-msg-test"
|
|
||||||
+export LD_LIBRARY_PATH="`dirname $PWD`/glib/.libs:$LD_LIBRARY_PATH"
|
|
||||||
OUT=$(gdb --batch --ex run --ex "set print elements 0" --ex "print (char*) __glib_assert_msg" .libs/$msg_test 2> $error_out) || \
|
|
||||||
fail "failed to run gdb"
|
|
||||||
|
|
@ -1,220 +0,0 @@
|
|||||||
From 0782edcb44110c8a3ba921258eb8d4e452f2470e Mon Sep 17 00:00:00 2001
|
|
||||||
From: Dan Williams <dcbw@redhat.com>
|
|
||||||
Date: Fri, 23 Sep 2011 12:32:23 -0500
|
|
||||||
Subject: [PATCH] closure: fix handling of ENUMs and integral return types on
|
|
||||||
64-bit BE platforms
|
|
||||||
|
|
||||||
enums are stored in v_long but need to be marshalled as signed
|
|
||||||
integers. On platforms where int is 32 bits, taking the
|
|
||||||
address of v_long resulted in the wrong 32 bits being marshalled.
|
|
||||||
So we need to stuff the enum's int-sized value to a temporary
|
|
||||||
int-sized variable and marshall that instead.
|
|
||||||
|
|
||||||
Second, on return, libffi actually returns a pointer to a value
|
|
||||||
that's sized according to platform conventions, not according to
|
|
||||||
what the caller requested. ie if ffi_type_sint was requested, the
|
|
||||||
value can still be a 64-bit sign-extended long on a 64-bit
|
|
||||||
architecture like PPC64, thus the caller cannot simply cast
|
|
||||||
the return value as a pointer to the desired type, but must cast
|
|
||||||
as a pointer to an integral type and then cast to the desired
|
|
||||||
type to remove any sign extension complications.
|
|
||||||
|
|
||||||
For more information on how to correctly handle libffi return
|
|
||||||
values, see the following bug, specifically comment 35:
|
|
||||||
|
|
||||||
https://bugzilla.redhat.com/show_bug.cgi?id=736489
|
|
||||||
|
|
||||||
"For 64-bit ABIs that extend integral returns types to 64-bits, libffi always
|
|
||||||
returns full 64-bit values that you can truncate in the calling code. It's
|
|
||||||
just the way it is has always been. Please don't change libffi. I'll document
|
|
||||||
this clearly for the next version (perhaps there is a mention of this, I
|
|
||||||
haven't looked yet).
|
|
||||||
|
|
||||||
The same is true for returning 8-bit values, for instance, on 32-bit systems.
|
|
||||||
All ABIs extend those results to the full 32-bits so you need to provide a
|
|
||||||
properly aligned buffer that's big enough to hold the result."
|
|
||||||
|
|
||||||
https://bugzilla.gnome.org/show_bug.cgi?id=659881
|
|
||||||
|
|
||||||
[Alexandre Rostovtsev <tetromino@gentoo.org>: backport to glib-2.30.x]
|
|
||||||
---
|
|
||||||
gobject/gclosure.c | 76 ++++++++++++++++++++++++++++++++++++++++-----------
|
|
||||||
1 files changed, 59 insertions(+), 17 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/gobject/gclosure.c b/gobject/gclosure.c
|
|
||||||
index 5fd928b..fc4f99a 100644
|
|
||||||
--- a/gobject/gclosure.c
|
|
||||||
+++ b/gobject/gclosure.c
|
|
||||||
@@ -944,21 +944,42 @@ g_signal_type_cclosure_new (GType itype,
|
|
||||||
|
|
||||||
#include <ffi.h>
|
|
||||||
static ffi_type *
|
|
||||||
-value_to_ffi_type (const GValue *gvalue, gpointer *value)
|
|
||||||
+value_to_ffi_type (const GValue *gvalue,
|
|
||||||
+ gpointer *value,
|
|
||||||
+ gint *enum_tmpval,
|
|
||||||
+ gboolean *tmpval_used)
|
|
||||||
{
|
|
||||||
ffi_type *rettype = NULL;
|
|
||||||
GType type = g_type_fundamental (G_VALUE_TYPE (gvalue));
|
|
||||||
g_assert (type != G_TYPE_INVALID);
|
|
||||||
|
|
||||||
+ if (enum_tmpval)
|
|
||||||
+ {
|
|
||||||
+ g_assert (tmpval_used != NULL);
|
|
||||||
+ *tmpval_used = FALSE;
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
switch (type)
|
|
||||||
{
|
|
||||||
case G_TYPE_BOOLEAN:
|
|
||||||
case G_TYPE_CHAR:
|
|
||||||
case G_TYPE_INT:
|
|
||||||
- case G_TYPE_ENUM:
|
|
||||||
rettype = &ffi_type_sint;
|
|
||||||
*value = (gpointer)&(gvalue->data[0].v_int);
|
|
||||||
break;
|
|
||||||
+ case G_TYPE_ENUM:
|
|
||||||
+ /* enums are stored in v_long even though they are integers, which makes
|
|
||||||
+ * marshalling through libffi somewhat complicated. They need to be
|
|
||||||
+ * marshalled as signed ints, but we need to use a temporary int sized
|
|
||||||
+ * value to pass to libffi otherwise it'll pull the wrong value on
|
|
||||||
+ * BE machines with 32-bit integers when treating v_long as 32-bit int.
|
|
||||||
+ */
|
|
||||||
+ g_assert (enum_tmpval != NULL);
|
|
||||||
+ rettype = &ffi_type_sint;
|
|
||||||
+ *enum_tmpval = g_value_get_enum (gvalue);
|
|
||||||
+ *value = enum_tmpval;
|
|
||||||
+ *tmpval_used = TRUE;
|
|
||||||
+ break;
|
|
||||||
case G_TYPE_UCHAR:
|
|
||||||
case G_TYPE_UINT:
|
|
||||||
case G_TYPE_FLAGS:
|
|
||||||
@@ -1011,10 +1032,12 @@ value_to_ffi_type (const GValue *gvalue, gpointer *value)
|
|
||||||
static void
|
|
||||||
value_from_ffi_type (GValue *gvalue, gpointer *value)
|
|
||||||
{
|
|
||||||
+ ffi_arg *int_val = value;
|
|
||||||
+
|
|
||||||
switch (g_type_fundamental (G_VALUE_TYPE (gvalue)))
|
|
||||||
{
|
|
||||||
case G_TYPE_INT:
|
|
||||||
- g_value_set_int (gvalue, *(gint*)value);
|
|
||||||
+ g_value_set_int (gvalue, (gint) *int_val);
|
|
||||||
break;
|
|
||||||
case G_TYPE_FLOAT:
|
|
||||||
g_value_set_float (gvalue, *(gfloat*)value);
|
|
||||||
@@ -1023,43 +1046,43 @@ value_from_ffi_type (GValue *gvalue, gpointer *value)
|
|
||||||
g_value_set_double (gvalue, *(gdouble*)value);
|
|
||||||
break;
|
|
||||||
case G_TYPE_BOOLEAN:
|
|
||||||
- g_value_set_boolean (gvalue, *(gboolean*)value);
|
|
||||||
+ g_value_set_boolean (gvalue, (gboolean) *int_val);
|
|
||||||
break;
|
|
||||||
case G_TYPE_STRING:
|
|
||||||
g_value_set_string (gvalue, *(gchar**)value);
|
|
||||||
break;
|
|
||||||
case G_TYPE_CHAR:
|
|
||||||
- g_value_set_char (gvalue, *(gchar*)value);
|
|
||||||
+ g_value_set_char (gvalue, (gchar) *int_val);
|
|
||||||
break;
|
|
||||||
case G_TYPE_UCHAR:
|
|
||||||
- g_value_set_uchar (gvalue, *(guchar*)value);
|
|
||||||
+ g_value_set_uchar (gvalue, (guchar) *int_val);
|
|
||||||
break;
|
|
||||||
case G_TYPE_UINT:
|
|
||||||
- g_value_set_uint (gvalue, *(guint*)value);
|
|
||||||
+ g_value_set_uint (gvalue, (guint) *int_val);
|
|
||||||
break;
|
|
||||||
case G_TYPE_POINTER:
|
|
||||||
g_value_set_pointer (gvalue, *(gpointer*)value);
|
|
||||||
break;
|
|
||||||
case G_TYPE_LONG:
|
|
||||||
- g_value_set_long (gvalue, *(glong*)value);
|
|
||||||
+ g_value_set_long (gvalue, (glong) *int_val);
|
|
||||||
break;
|
|
||||||
case G_TYPE_ULONG:
|
|
||||||
- g_value_set_ulong (gvalue, *(gulong*)value);
|
|
||||||
+ g_value_set_ulong (gvalue, (gulong) *int_val);
|
|
||||||
break;
|
|
||||||
case G_TYPE_INT64:
|
|
||||||
- g_value_set_int64 (gvalue, *(gint64*)value);
|
|
||||||
+ g_value_set_int64 (gvalue, (gint64) *int_val);
|
|
||||||
break;
|
|
||||||
case G_TYPE_UINT64:
|
|
||||||
- g_value_set_uint64 (gvalue, *(guint64*)value);
|
|
||||||
+ g_value_set_uint64 (gvalue, (guint64) *int_val);
|
|
||||||
break;
|
|
||||||
case G_TYPE_BOXED:
|
|
||||||
g_value_set_boxed (gvalue, *(gpointer*)value);
|
|
||||||
break;
|
|
||||||
case G_TYPE_ENUM:
|
|
||||||
- g_value_set_enum (gvalue, *(gint*)value);
|
|
||||||
+ g_value_set_enum (gvalue, (gint) *int_val);
|
|
||||||
break;
|
|
||||||
case G_TYPE_FLAGS:
|
|
||||||
- g_value_set_flags (gvalue, *(guint*)value);
|
|
||||||
+ g_value_set_flags (gvalue, (guint) *int_val);
|
|
||||||
break;
|
|
||||||
case G_TYPE_PARAM:
|
|
||||||
g_value_set_param (gvalue, *(gpointer*)value);
|
|
||||||
@@ -1108,10 +1131,13 @@ g_cclosure_marshal_generic (GClosure *closure,
|
|
||||||
int i;
|
|
||||||
ffi_cif cif;
|
|
||||||
GCClosure *cc = (GCClosure*) closure;
|
|
||||||
+ gint *enum_tmpval;
|
|
||||||
+ gboolean tmpval_used = FALSE;
|
|
||||||
|
|
||||||
+ enum_tmpval = g_alloca (sizeof (gint));
|
|
||||||
if (return_gvalue && G_VALUE_TYPE (return_gvalue))
|
|
||||||
{
|
|
||||||
- rtype = value_to_ffi_type (return_gvalue, &rvalue);
|
|
||||||
+ rtype = value_to_ffi_type (return_gvalue, &rvalue, enum_tmpval, &tmpval_used);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
@@ -1124,22 +1150,38 @@ g_cclosure_marshal_generic (GClosure *closure,
|
|
||||||
atypes = g_alloca (sizeof (ffi_type *) * n_args);
|
|
||||||
args = g_alloca (sizeof (gpointer) * n_args);
|
|
||||||
|
|
||||||
+ if (tmpval_used)
|
|
||||||
+ enum_tmpval = g_alloca (sizeof (gint));
|
|
||||||
+
|
|
||||||
if (G_CCLOSURE_SWAP_DATA (closure))
|
|
||||||
{
|
|
||||||
atypes[n_args-1] = value_to_ffi_type (param_values + 0,
|
|
||||||
- &args[n_args-1]);
|
|
||||||
+ &args[n_args-1],
|
|
||||||
+ enum_tmpval,
|
|
||||||
+ &tmpval_used);
|
|
||||||
atypes[0] = &ffi_type_pointer;
|
|
||||||
args[0] = &closure->data;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
- atypes[0] = value_to_ffi_type (param_values + 0, &args[0]);
|
|
||||||
+ atypes[0] = value_to_ffi_type (param_values + 0,
|
|
||||||
+ &args[0],
|
|
||||||
+ enum_tmpval,
|
|
||||||
+ &tmpval_used);
|
|
||||||
atypes[n_args-1] = &ffi_type_pointer;
|
|
||||||
args[n_args-1] = &closure->data;
|
|
||||||
}
|
|
||||||
|
|
||||||
for (i = 1; i < n_args - 1; i++)
|
|
||||||
- atypes[i] = value_to_ffi_type (param_values + i, &args[i]);
|
|
||||||
+ {
|
|
||||||
+ if (tmpval_used)
|
|
||||||
+ enum_tmpval = g_alloca (sizeof (gint));
|
|
||||||
+
|
|
||||||
+ atypes[i] = value_to_ffi_type (param_values + i,
|
|
||||||
+ &args[i],
|
|
||||||
+ enum_tmpval,
|
|
||||||
+ &tmpval_used);
|
|
||||||
+ }
|
|
||||||
|
|
||||||
if (ffi_prep_cif (&cif, FFI_DEFAULT_ABI, n_args, rtype, atypes) != FFI_OK)
|
|
||||||
return;
|
|
||||||
--
|
|
||||||
1.7.8.5
|
|
||||||
|
|
@ -1,247 +0,0 @@
|
|||||||
# Copyright 1999-2013 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/glib/glib-2.30.3.ebuild,v 1.15 2013/02/19 00:08:33 tetromino Exp $
|
|
||||||
|
|
||||||
EAPI="4"
|
|
||||||
PYTHON_DEPEND="utils? 2"
|
|
||||||
# Avoid runtime dependency on python when USE=test
|
|
||||||
|
|
||||||
inherit autotools gnome.org libtool eutils flag-o-matic gnome2-utils multilib pax-utils python toolchain-funcs virtualx
|
|
||||||
|
|
||||||
DESCRIPTION="The GLib library of C routines"
|
|
||||||
HOMEPAGE="http://www.gtk.org/"
|
|
||||||
SRC_URI="${SRC_URI}
|
|
||||||
http://pkgconfig.freedesktop.org/releases/pkg-config-0.26.tar.gz" # pkg.m4 for eautoreconf
|
|
||||||
|
|
||||||
LICENSE="LGPL-2+"
|
|
||||||
SLOT="2"
|
|
||||||
IUSE="debug fam selinux +static-libs systemtap test utils xattr"
|
|
||||||
KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd ~x86-linux"
|
|
||||||
|
|
||||||
RDEPEND="virtual/libiconv
|
|
||||||
virtual/libffi
|
|
||||||
sys-libs/zlib
|
|
||||||
xattr? ( sys-apps/attr )
|
|
||||||
fam? ( virtual/fam )
|
|
||||||
utils? ( >=dev-util/gdbus-codegen-${PV} )"
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
>=sys-devel/gettext-0.11
|
|
||||||
>=dev-util/gtk-doc-am-1.15
|
|
||||||
systemtap? ( >=dev-util/systemtap-1.3 )
|
|
||||||
test? (
|
|
||||||
sys-devel/gdb
|
|
||||||
=dev-lang/python-2*
|
|
||||||
>=dev-util/gdbus-codegen-${PV}
|
|
||||||
>=sys-apps/dbus-1.2.14 )
|
|
||||||
!<dev-util/gtk-doc-1.15-r2"
|
|
||||||
PDEPEND="x11-misc/shared-mime-info
|
|
||||||
!<gnome-base/gvfs-1.6.4-r990"
|
|
||||||
# shared-mime-info needed for gio/xdgmime, bug #409481
|
|
||||||
# Earlier versions of gvfs do not work with glib
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
# Needed for gio/tests/gdbus-testserver.py
|
|
||||||
if use test ; then
|
|
||||||
python_set_active_version 2
|
|
||||||
python_pkg_setup
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
mv -f "${WORKDIR}"/pkg-config-*/pkg.m4 "${WORKDIR}"/ || die
|
|
||||||
|
|
||||||
if use ia64 ; then
|
|
||||||
# Only apply for < 4.1
|
|
||||||
local major=$(gcc-major-version)
|
|
||||||
local minor=$(gcc-minor-version)
|
|
||||||
if (( major < 4 || ( major == 4 && minor == 0 ) )); then
|
|
||||||
epatch "${FILESDIR}/glib-2.10.3-ia64-atomic-ops.patch"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Fix from upstream for building with C++ compilers.
|
|
||||||
epatch "${FILESDIR}/${PN}-2.30.2-missing-decls.patch"
|
|
||||||
|
|
||||||
# Don't fail gio tests when ran without userpriv, upstream bug 552912
|
|
||||||
# This is only a temporary workaround, remove as soon as possible
|
|
||||||
# epatch "${FILESDIR}/${PN}-2.18.1-workaround-gio-test-failure-without-userpriv.patch"
|
|
||||||
|
|
||||||
# Fix gmodule issues on fbsd; bug #184301
|
|
||||||
epatch "${FILESDIR}"/${PN}-2.12.12-fbsd.patch
|
|
||||||
|
|
||||||
# Fix test failure when upgrading from 2.22 to 2.24, upstream bug 621368
|
|
||||||
epatch "${FILESDIR}/${PN}-2.30.3-assert-test-failure.patch"
|
|
||||||
|
|
||||||
# Do not try to remove files on live filesystem, upstream bug #619274
|
|
||||||
sed 's:^\(.*"/desktop-app-info/delete".*\):/*\1*/:' \
|
|
||||||
-i "${S}"/gio/tests/desktop-app-info.c || die "sed failed"
|
|
||||||
|
|
||||||
if ! use test; then
|
|
||||||
# don't waste time building tests
|
|
||||||
sed 's/^\(.*\SUBDIRS .*\=.*\)tests\(.*\)$/\1\2/' -i $(find . -name Makefile.am -o -name Makefile.in) || die
|
|
||||||
else
|
|
||||||
# Disable tests requiring dev-util/desktop-file-utils when not installed, bug #286629
|
|
||||||
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 "/desktop-app-info\/default/d" gio/tests/desktop-app-info.c || die
|
|
||||||
sed -i -e "/desktop-app-info\/fallback/d" gio/tests/desktop-app-info.c || die
|
|
||||||
sed -i -e "/desktop-app-info\/lastused/d" gio/tests/desktop-app-info.c || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Disable tests requiring dbus-python and pygobject; bugs #349236, #377549, #384853
|
|
||||||
if ! has_version dev-python/dbus-python || ! has_version 'dev-python/pygobject:2' ; then
|
|
||||||
ewarn "Some tests will be skipped due to dev-python/dbus-python or dev-python/pygobject:2"
|
|
||||||
ewarn "not being present on your system, think on installing them to get these tests run."
|
|
||||||
sed -i -e "/connection\/filter/d" gio/tests/gdbus-connection.c || die
|
|
||||||
sed -i -e "/connection\/large_message/d" gio/tests/gdbus-connection-slow.c || die
|
|
||||||
sed -i -e "/gdbus\/proxy/d" gio/tests/gdbus-proxy.c || die
|
|
||||||
sed -i -e "/gdbus\/proxy-well-known-name/d" gio/tests/gdbus-proxy-well-known-name.c || die
|
|
||||||
sed -i -e "/gdbus\/introspection-parser/d" gio/tests/gdbus-introspection.c || die
|
|
||||||
sed -i -e "/g_test_add_func/d" gio/tests/gdbus-threading.c || die
|
|
||||||
sed -i -e "/gdbus\/method-calls-in-thread/d" gio/tests/gdbus-threading.c || die
|
|
||||||
# needed to prevent gdbus-threading from asserting
|
|
||||||
ln -sfn $(type -P true) gio/tests/gdbus-testserver.py
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
# gdbus-codegen is a separate package
|
|
||||||
epatch "${FILESDIR}/${PN}-2.30.1-external-gdbus-codegen.patch"
|
|
||||||
|
|
||||||
# Handle the G_HOME environment variable to override the passwd entry, upstream bug #142568
|
|
||||||
epatch "${FILESDIR}/${PN}-2.30.1-homedir-env.patch"
|
|
||||||
|
|
||||||
# Fix hardcoded path to machine-id wrt #390143
|
|
||||||
epatch "${FILESDIR}/${PN}-2.30.2-machine-id.patch"
|
|
||||||
|
|
||||||
# Fix from glib-2.31 for ppc64
|
|
||||||
epatch "${FILESDIR}/${PN}-2.30.3-closure-64bit-be.patch"
|
|
||||||
|
|
||||||
epatch_user
|
|
||||||
|
|
||||||
# disable pyc compiling
|
|
||||||
use test && python_clean_py-compile_files
|
|
||||||
|
|
||||||
# Needed for the punt-python-check patch, disabling timeout test
|
|
||||||
# Also needed to prevent croscompile failures, see bug #267603
|
|
||||||
# Also needed for the no-gdbus-codegen patch
|
|
||||||
AT_M4DIR="${WORKDIR}" eautoreconf
|
|
||||||
|
|
||||||
[[ ${CHOST} == *-freebsd* ]] && elibtoolize
|
|
||||||
|
|
||||||
epunt_cxx
|
|
||||||
}
|
|
||||||
|
|
||||||
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 && ! has_version virtual/pkgconfig; 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"
|
|
||||||
fi
|
|
||||||
|
|
||||||
local myconf
|
|
||||||
|
|
||||||
# Building with --disable-debug highly unrecommended. It will build glib in
|
|
||||||
# an unusable form as it disables some commonly used API. Please do not
|
|
||||||
# convert this to the use_enable form, as it results in a broken build.
|
|
||||||
# -- compnerd (3/27/06)
|
|
||||||
use debug && myconf="--enable-debug"
|
|
||||||
|
|
||||||
# Always use internal libpcre, bug #254659
|
|
||||||
econf ${myconf} \
|
|
||||||
$(use_enable xattr) \
|
|
||||||
$(use_enable fam) \
|
|
||||||
$(use_enable selinux) \
|
|
||||||
$(use_enable static-libs static) \
|
|
||||||
$(use_enable systemtap dtrace) \
|
|
||||||
$(use_enable systemtap systemtap) \
|
|
||||||
--enable-regex \
|
|
||||||
--with-pcre=internal \
|
|
||||||
--with-threads=posix
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
local f
|
|
||||||
|
|
||||||
# install-exec-hook substitutes ${PYTHON} in glib/gtester-report
|
|
||||||
emake DESTDIR="${D}" PYTHON="${EPREFIX}/usr/bin/python2" install
|
|
||||||
|
|
||||||
if ! use utils; then
|
|
||||||
rm "${ED}usr/bin/gtester-report"
|
|
||||||
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/"
|
|
||||||
|
|
||||||
dodoc AUTHORS ChangeLog* NEWS* README
|
|
||||||
|
|
||||||
insinto /usr/share/bash-completion
|
|
||||||
for f in gdbus gsettings; do
|
|
||||||
newins "${ED}/etc/bash_completion.d/${f}-bash-completion.sh" ${f}
|
|
||||||
done
|
|
||||||
rm -rf "${ED}/etc"
|
|
||||||
|
|
||||||
# Completely useless with or without USE static-libs, people need to use
|
|
||||||
# pkg-config
|
|
||||||
find "${D}" -name '*.la' -exec rm -f {} +
|
|
||||||
}
|
|
||||||
|
|
||||||
src_test() {
|
|
||||||
gnome2_environment_reset
|
|
||||||
|
|
||||||
unset DBUS_SESSION_BUS_ADDRESS
|
|
||||||
export XDG_CONFIG_DIRS=/etc/xdg
|
|
||||||
export XDG_DATA_DIRS=/usr/local/share:/usr/share
|
|
||||||
export G_DBUS_COOKIE_SHA1_KEYRING_DIR="${T}/temp"
|
|
||||||
unset GSETTINGS_BACKEND # bug 352451
|
|
||||||
|
|
||||||
# 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 "${S}"/tests/.libs/assert-msg-test \
|
|
||||||
|| die "Hardened adjustment failed"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Need X for dbus-launch session X11 initialization
|
|
||||||
Xemake check
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_preinst() {
|
|
||||||
# Only give the introspection message if:
|
|
||||||
# * The user has gobject-introspection
|
|
||||||
# * Has glib already installed
|
|
||||||
# * Previous version was different from new version
|
|
||||||
if has_version "dev-libs/gobject-introspection" && ! has_version "=${CATEGORY}/${PF}"; then
|
|
||||||
ewarn "You must rebuild gobject-introspection so that the installed"
|
|
||||||
ewarn "typelibs and girs are regenerated for the new APIs in glib"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
# Inform users about possible breakage when updating glib and not dbus-glib, bug #297483
|
|
||||||
if has_version dev-libs/dbus-glib; then
|
|
||||||
ewarn "If you experience a breakage after updating dev-libs/glib try"
|
|
||||||
ewarn "rebuilding dev-libs/dbus-glib"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if has_version '<x11-libs/gtk+-3.0.12:3'; then
|
|
||||||
# To have a clear upgrade path for gtk+-3.0.x users, have to resort to
|
|
||||||
# a warning instead of a blocker
|
|
||||||
ewarn
|
|
||||||
ewarn "Using <gtk+-3.0.12:3 with ${P} results in frequent crashes."
|
|
||||||
ewarn "You should upgrade to a newer version of gtk+:3 immediately."
|
|
||||||
fi
|
|
||||||
}
|
|
@ -0,0 +1,13 @@
|
|||||||
|
diff -urN liborcus-0.5.1/src/parser/Makefile.am liborcus-0.5.1.new/src/parser/Makefile.am
|
||||||
|
--- liborcus-0.5.1/src/parser/Makefile.am 2013-04-12 16:25:03.000000000 +0200
|
||||||
|
+++ liborcus-0.5.1.new/src/parser/Makefile.am 2013-04-23 19:45:47.794480191 +0200
|
||||||
|
@@ -20,7 +20,8 @@
|
||||||
|
|
||||||
|
liborcus_parser_@ORCUS_API_VERSION@_la_LDFLAGS = -no-undefined
|
||||||
|
liborcus_parser_@ORCUS_API_VERSION@_la_LIBADD = \
|
||||||
|
- $(ZLIB_LIBS)
|
||||||
|
+ $(BOOST_SYSTEM_LIB) \
|
||||||
|
+ $(ZLIB_LIBS)
|
||||||
|
|
||||||
|
EXTRA_PROGRAMS = \
|
||||||
|
parser-test-string-pool \
|
@ -1,44 +1,47 @@
|
|||||||
--- libtommath-0.42.0/makefile.shared.orig
|
--- makefile.shared
|
||||||
+++ libtommath-0.42.0/makefile.shared
|
+++ makefile.shared
|
||||||
@@ -3,7 +3,7 @@
|
@@ -3,7 +3,8 @@
|
||||||
#Tom St Denis
|
#Tom St Denis
|
||||||
VERSION=0:41
|
VERSION=0:41
|
||||||
|
|
||||||
-CC = libtool --mode=compile --tag=CC gcc
|
-CC = libtool --mode=compile --tag=CC gcc
|
||||||
+LTCOMPILE = libtool --mode=compile --tag=CC $(CC)
|
+LT ?= libtool
|
||||||
|
+LTCOMPILE = $(LT) --mode=compile --tag=CC $(CC)
|
||||||
|
|
||||||
CFLAGS += -I./ -Wall -W -Wshadow -Wsign-compare
|
CFLAGS += -I./ -Wall -W -Wshadow -Wsign-compare
|
||||||
|
|
||||||
@@ -82,21 +82,24 @@
|
@@ -82,21 +83,24 @@
|
||||||
|
|
||||||
objs: $(OBJECTS)
|
objs: $(OBJECTS)
|
||||||
|
|
||||||
+.c.o:
|
+%.lo: %.c
|
||||||
+ $(LTCOMPILE) $(CFLAGS) $(LDFLAGS) -o $@ -c $<
|
+ $(LTCOMPILE) $(CFLAGS) $(CPPFLAGS) -o $@ -c $<
|
||||||
+
|
+
|
||||||
$(LIBNAME): $(OBJECTS)
|
-$(LIBNAME): $(OBJECTS)
|
||||||
- libtool --mode=link gcc *.lo -o $(LIBNAME) -rpath $(LIBPATH) -version-info $(VERSION)
|
- libtool --mode=link gcc *.lo -o $(LIBNAME) -rpath $(LIBPATH) -version-info $(VERSION)
|
||||||
+ libtool --mode=link --tag=CC $(CC) $(LDFLAGS) *.lo -o $(LIBNAME) -rpath $(LIBPATH) -version-info $(VERSION)
|
+$(LIBNAME): $(OBJECTS:.o=.lo)
|
||||||
|
+ $(LT) --mode=link --tag=CC $(CC) $(CFLAGS) $(LDFLAGS) *.lo -o $(LIBNAME) -rpath $(LIBPATH) -version-info $(VERSION)
|
||||||
|
|
||||||
install: $(LIBNAME)
|
install: $(LIBNAME)
|
||||||
- install -d -g $(GROUP) -o $(USER) $(DESTDIR)$(LIBPATH)
|
- install -d -g $(GROUP) -o $(USER) $(DESTDIR)$(LIBPATH)
|
||||||
+ install -d $(DESTDIR)$(LIBPATH)
|
- libtool --mode=install install -c $(LIBNAME) $(DESTDIR)$(LIBPATH)/$(LIBNAME)
|
||||||
libtool --mode=install install -c $(LIBNAME) $(DESTDIR)$(LIBPATH)/$(LIBNAME)
|
|
||||||
- install -d -g $(GROUP) -o $(USER) $(DESTDIR)$(INCPATH)
|
- install -d -g $(GROUP) -o $(USER) $(DESTDIR)$(INCPATH)
|
||||||
- install -g $(GROUP) -o $(USER) $(HEADERS) $(DESTDIR)$(INCPATH)
|
- install -g $(GROUP) -o $(USER) $(HEADERS) $(DESTDIR)$(INCPATH)
|
||||||
|
+ install -d $(DESTDIR)$(LIBPATH)
|
||||||
|
+ $(LT) --mode=install install -c $(LIBNAME) $(DESTDIR)$(LIBPATH)/$(LIBNAME)
|
||||||
+ install -d $(DESTDIR)$(INCPATH)
|
+ install -d $(DESTDIR)$(INCPATH)
|
||||||
+ install -m 644 $(HEADERS) $(DESTDIR)$(INCPATH)
|
+ install -m 644 $(HEADERS) $(DESTDIR)$(INCPATH)
|
||||||
|
|
||||||
test: $(LIBNAME) demo/demo.o
|
test: $(LIBNAME) demo/demo.o
|
||||||
- gcc $(CFLAGS) -c demo/demo.c -o demo/demo.o
|
- gcc $(CFLAGS) -c demo/demo.c -o demo/demo.o
|
||||||
- libtool --mode=link gcc -o test demo/demo.o $(LIBNAME_S)
|
- libtool --mode=link gcc -o test demo/demo.o $(LIBNAME_S)
|
||||||
+ $(CC) $(CFLAGS) -c demo/demo.c -o demo/demo.o
|
+ $(CC) $(CFLAGS) $(CPPFLAGS) -c demo/demo.c -o demo/demo.o
|
||||||
+ libtool --mode=link $(CC) $(LDFLAGS) -o test demo/demo.o $(LIBNAME_S)
|
+ $(LT) --mode=link $(CC) $(CFLAGS) $(LDFLAGS) -o test demo/demo.o $(LIBNAME_S)
|
||||||
|
|
||||||
mtest: test
|
mtest: test
|
||||||
- cd mtest ; gcc $(CFLAGS) mtest.c -o mtest
|
- cd mtest ; gcc $(CFLAGS) mtest.c -o mtest
|
||||||
+ cd mtest ; $(CC) $(CFLAGS) $(LDFLAGS) mtest.c -o mtest
|
+ cd mtest ; $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) mtest.c -o mtest
|
||||||
|
|
||||||
timing: $(LIBNAME)
|
timing: $(LIBNAME)
|
||||||
- gcc $(CFLAGS) -DTIMER demo/timing.c $(LIBNAME_S) -o ltmtest
|
- gcc $(CFLAGS) -DTIMER demo/timing.c $(LIBNAME_S) -o ltmtest
|
||||||
+ libtool --mode=link $(CC) $(CFLAGS) $(LDFLAGS) -DTIMER demo/timing.c $(LIBNAME_S) -o ltmtest
|
+ $(LT) --mode=link $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -DTIMER demo/timing.c $(LIBNAME_S) -o ltmtest
|
||||||
|
@ -1 +1,2 @@
|
|||||||
DIST svn-1.0.1.tgz 24716 SHA256 022341599f28272a22df322e67e07af30abd9343d72a77e01a7b904edc4ba3c0 SHA512 59143d928f7716ba239e4d43aef26bddce054634964987e6abbba244025a6b7994f814783bf3610676b287450ec1c470eda515bf931e6a4c7194edb341510427 WHIRLPOOL 08386d913e2ea516d79646db002ebdb1327f0a634c9960a8d59c001ef4188445cad505a54c6f3b23981d9e42b32d43526fc3a6859a76bf6368c175b7dd243110
|
DIST svn-1.0.1.tgz 24716 SHA256 022341599f28272a22df322e67e07af30abd9343d72a77e01a7b904edc4ba3c0 SHA512 59143d928f7716ba239e4d43aef26bddce054634964987e6abbba244025a6b7994f814783bf3610676b287450ec1c470eda515bf931e6a4c7194edb341510427 WHIRLPOOL 08386d913e2ea516d79646db002ebdb1327f0a634c9960a8d59c001ef4188445cad505a54c6f3b23981d9e42b32d43526fc3a6859a76bf6368c175b7dd243110
|
||||||
|
DIST svn-1.0.2.tgz 25226 SHA256 ca0ea834e745a1aae65b456800bb5c5cfd7c4eceff281f7a8e317d30726e48cd SHA512 32baa9d7becabde30d4454326ffeab7c815d2112b6e6554ed2eed3cdf01fe0be73917f5794e0b812daf4d733402e64beb2705daffa7c9895bab5782961f7fc5b WHIRLPOOL 52022d8ec414cb8e95ed8cca523a3cb392ddf27fc38ee7a2d028599b605ec4750b1d8e2e194710881a32e30bafdc1aa234abbdd89e97963bf42b691b65675688
|
||||||
|
@ -0,0 +1,21 @@
|
|||||||
|
# Copyright 1999-2013 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/dev-php/pecl-svn/pecl-svn-1.0.2.ebuild,v 1.1 2013/04/23 16:08:18 olemarkus Exp $
|
||||||
|
|
||||||
|
EAPI=5
|
||||||
|
|
||||||
|
PHP_EXT_NAME="svn"
|
||||||
|
|
||||||
|
USE_PHP="php5-3 php5-4 php5-5"
|
||||||
|
|
||||||
|
inherit php-ext-pecl-r2
|
||||||
|
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
|
||||||
|
DESCRIPTION="PHP Bindings for the Subversion Revision control system."
|
||||||
|
LICENSE="PHP-3.01"
|
||||||
|
SLOT="0"
|
||||||
|
IUSE=""
|
||||||
|
|
||||||
|
DEPEND="dev-vcs/subversion"
|
||||||
|
RDEPEND="${DEPEND}"
|
@ -1 +1,2 @@
|
|||||||
DIST astropy-0.1.tar.gz 3109566 SHA256 205f4576b6267a362d96f7b9e913e1f21efd3d7c58b9d58ebc0d2ed69382c540 SHA512 e2519dec6b90a2a7eab26479ec18fc1934f118d7b3c3d0b279f42d11cb94f85fca49ff0f0fe52c7aabe25f2d241ba09b4fc4f3c699f5de88f8f0bacf387529f2 WHIRLPOOL 1b326cbc7a12d23a6be67efa9771ff62b546c6808cbd27d60d78cbe7c3c2effaa01ea4b150699698ff32dc41a5d5f6cf8e95dc5569c7c3c303f2b06cc0fa331b
|
DIST astropy-0.1.tar.gz 3109566 SHA256 205f4576b6267a362d96f7b9e913e1f21efd3d7c58b9d58ebc0d2ed69382c540 SHA512 e2519dec6b90a2a7eab26479ec18fc1934f118d7b3c3d0b279f42d11cb94f85fca49ff0f0fe52c7aabe25f2d241ba09b4fc4f3c699f5de88f8f0bacf387529f2 WHIRLPOOL 1b326cbc7a12d23a6be67efa9771ff62b546c6808cbd27d60d78cbe7c3c2effaa01ea4b150699698ff32dc41a5d5f6cf8e95dc5569c7c3c303f2b06cc0fa331b
|
||||||
|
DIST astropy-0.2.1.tar.gz 4736810 SHA256 ffd8e8b6cf71f34d55e926b845ea348eb0066a61d07f9f205ca32efff79b8424 SHA512 78b88ab4dfcafe5a9cd401a4e99a344f968c031b941728197fb11c51b8738cc37f3e6e45821217705e5ab3c080411a6ad2798f1f833fb50083f787e4129398aa WHIRLPOOL 9f6b70700a327255cff9f0322ca9551625ec937a025439fdbb376666fc63f7ca2e16f44d0be18170a9d5806200b9ab544b77471b476e8b8abbfdfbf09f016412
|
||||||
|
@ -0,0 +1,64 @@
|
|||||||
|
# Copyright 1999-2013 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/dev-python/astropy/astropy-0.2.1.ebuild,v 1.1 2013/04/23 22:53:01 bicatali Exp $
|
||||||
|
|
||||||
|
EAPI=5
|
||||||
|
|
||||||
|
PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} )
|
||||||
|
|
||||||
|
inherit distutils-r1
|
||||||
|
|
||||||
|
DESCRIPTION="Core functionality for performing astrophysics with Python"
|
||||||
|
HOMEPAGE="http://astropy.org/"
|
||||||
|
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="BSD"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
||||||
|
IUSE="doc test"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
dev-libs/expat
|
||||||
|
dev-python/numpy[${PYTHON_USEDEP}]
|
||||||
|
sci-astronomy/sofa_c
|
||||||
|
sci-astronomy/wcslib
|
||||||
|
sci-libs/cfitsio
|
||||||
|
sys-libs/zlib
|
||||||
|
!dev-python/pyfits
|
||||||
|
!dev-python/pywcs
|
||||||
|
!dev-python/vo"
|
||||||
|
DEPEND="${RDEPEND}
|
||||||
|
dev-python/cython[${PYTHON_USEDEP}]
|
||||||
|
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||||
|
virtual/pkgconfig
|
||||||
|
doc? ( dev-python/matplotlib
|
||||||
|
dev-python/sphinx
|
||||||
|
media-gfx/graphviz )
|
||||||
|
test? ( dev-libs/libxml2
|
||||||
|
dev-python/h5py[${PYTHON_USEDEP}]
|
||||||
|
dev-python/matplotlib[${PYTHON_USEDEP}]
|
||||||
|
dev-python/pytest[${PYTHON_USEDEP}]
|
||||||
|
sci-libs/scipy[${PYTHON_USEDEP}] )"
|
||||||
|
|
||||||
|
python_compile() {
|
||||||
|
distutils-r1_python_compile build \
|
||||||
|
--enable-legacy --use-system-libraries
|
||||||
|
}
|
||||||
|
|
||||||
|
python_compile_all() {
|
||||||
|
if use doc; then
|
||||||
|
VARTEXFONTS="${T}"/fonts \
|
||||||
|
MPLCONFIGDIR="${BUILD_DIR}" \
|
||||||
|
PYTHONPATH="${BUILD_DIR}"/lib \
|
||||||
|
emake -C docs html
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
python_test() {
|
||||||
|
distutils-r1_python_compile build \
|
||||||
|
--enable-legacy --use-system-libraries test
|
||||||
|
}
|
||||||
|
|
||||||
|
python_install_all() {
|
||||||
|
use doc && dohtml -r doc/_build/html
|
||||||
|
}
|
@ -1 +1,2 @@
|
|||||||
DIST h5py-2.1.2.tar.gz 985537 SHA256 26679852da555db57478b3c65f0ba3e60e2e6c642e6952481e5af85cf59ec5bd SHA512 15ca0209e8d8f172cb0708a2de946fbbde8551d9bebc4a95fa7ae31558457a7f43249d5289d7675490c577deb4e0153698fd2407644078bf30bd5ab10135fce3 WHIRLPOOL dd4bbb3f3ac8a6dd9fcf51b2de53fa1d575ff29a67c2c5b9d9a6cc07267f12c0e36d03db0e29e206306d550ae9f56c6e562b29def3d797f553165edc04a9a374
|
DIST h5py-2.1.2.tar.gz 985537 SHA256 26679852da555db57478b3c65f0ba3e60e2e6c642e6952481e5af85cf59ec5bd SHA512 15ca0209e8d8f172cb0708a2de946fbbde8551d9bebc4a95fa7ae31558457a7f43249d5289d7675490c577deb4e0153698fd2407644078bf30bd5ab10135fce3 WHIRLPOOL dd4bbb3f3ac8a6dd9fcf51b2de53fa1d575ff29a67c2c5b9d9a6cc07267f12c0e36d03db0e29e206306d550ae9f56c6e562b29def3d797f553165edc04a9a374
|
||||||
|
DIST h5py-2.1.3.tar.gz 988478 SHA256 bf5ea7c8758bb64cd9db8d2736cb84ccc93e5bfbf4133650d7adf4b05726ca83 SHA512 2eb7030f8559ff5cb06333223d98fda5b3a663b6f4a026949d1c423aa9a869d824e612ed5e1851f3bf830d645eea1a768414f73731c23ab4d406da26014fe202 WHIRLPOOL d6400ac987c26877419231c1623a520f77e81b28858423ba95ef7b2036be60214cbc69fac4645744137dc911526349e941d4229ed5ab0eba89c9c79723db36c5
|
||||||
|
@ -0,0 +1,42 @@
|
|||||||
|
# Copyright 1999-2013 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/dev-python/h5py/h5py-2.1.3.ebuild,v 1.1 2013/04/23 17:42:59 bicatali Exp $
|
||||||
|
|
||||||
|
EAPI=5
|
||||||
|
|
||||||
|
PYTHON_COMPAT=( python{2_6,2_7,3_2} )
|
||||||
|
|
||||||
|
inherit distutils-r1 flag-o-matic
|
||||||
|
|
||||||
|
DESCRIPTION="Simple Python interface to HDF5 files"
|
||||||
|
HOMEPAGE="http://www.h5py.org/"
|
||||||
|
SRC_URI="http://${PN}.googlecode.com/files/${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="BSD"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
||||||
|
IUSE="test examples"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
sci-libs/hdf5:=
|
||||||
|
dev-python/numpy[${PYTHON_USEDEP}]"
|
||||||
|
DEPEND="${RDEPEND}
|
||||||
|
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||||
|
test? ( virtual/python-unittest2[${PYTHON_USEDEP}] )"
|
||||||
|
|
||||||
|
python_prepare_all() {
|
||||||
|
append-cflags -fno-strict-aliasing
|
||||||
|
}
|
||||||
|
|
||||||
|
python_test() {
|
||||||
|
cd "${BUILD_DIR}"/lib/ && nosetests ./${PN}/lowtest || die
|
||||||
|
}
|
||||||
|
|
||||||
|
python_install_all() {
|
||||||
|
dodoc README.txt
|
||||||
|
if use examples; then
|
||||||
|
docompress -x /usr/share/doc/${PF}/examples
|
||||||
|
insinto /usr/share/doc/${PF}
|
||||||
|
doins -r examples
|
||||||
|
fi
|
||||||
|
}
|
@ -1 +1,2 @@
|
|||||||
DIST pyds9-1.5.tar.gz 2001781 SHA256 8f68a3b5a20a94d674553f2d9724d9c53a1ca1611a66dfb5665054c2091dd76d SHA512 cb3f7e8093d30746d8dce9619a7b4878542d85a327667a8a01b7f32775348116f97e9cb04fddc91366683251d94a045c96636c62a58f54cf25e458b5752bdb7f WHIRLPOOL 4ff41938fb9e3690cf65e287240eca319d35db7e2c33695377da6472d5493c9f743017ecabf7b045494b2a6a8faaa229bd45934d9f19548d303c42ce883bbbd8
|
DIST pyds9-1.5.tar.gz 2001781 SHA256 8f68a3b5a20a94d674553f2d9724d9c53a1ca1611a66dfb5665054c2091dd76d SHA512 cb3f7e8093d30746d8dce9619a7b4878542d85a327667a8a01b7f32775348116f97e9cb04fddc91366683251d94a045c96636c62a58f54cf25e458b5752bdb7f WHIRLPOOL 4ff41938fb9e3690cf65e287240eca319d35db7e2c33695377da6472d5493c9f743017ecabf7b045494b2a6a8faaa229bd45934d9f19548d303c42ce883bbbd8
|
||||||
|
DIST pyds9-1.6.tar.gz 2016740 SHA256 649cb52b9dfa8492f7409733d143562dd0396f6e50d5bdabe9e944ff10956bd7 SHA512 d074a7ff2aace3b8d7eb6c3b720850013f77164b697e227771350c6be641ef54d0990b9a934dd7c18c860fec88066e30171afaa8c53e4c328e8d0a33fd1fc22f WHIRLPOOL 3266b5a48d89ca5d585fb5e1d55c05df256e32685aff44b733e6d43d6f95692db4ac9204d2c3b0d300ca309df26a1a1a47fea0e5a867888adb86da0499eb49ad
|
||||||
|
@ -0,0 +1,41 @@
|
|||||||
|
# Copyright 1999-2013 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/dev-python/pyds9/pyds9-1.6.ebuild,v 1.1 2013/04/22 21:52:53 bicatali Exp $
|
||||||
|
|
||||||
|
EAPI=5
|
||||||
|
|
||||||
|
PYTHON_COMPAT=( python{2_5,2_6,2_7} )
|
||||||
|
inherit distutils-r1 multilib
|
||||||
|
|
||||||
|
XPAPV=2.1.14
|
||||||
|
|
||||||
|
DESCRIPTION="Python interface to XPA to communicate with DS9"
|
||||||
|
HOMEPAGE="http://hea-www.harvard.edu/RD/ds9/pyds9/"
|
||||||
|
SRC_URI="http://hea-www.harvard.edu/RD/download/${PN}/${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="BSD"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
||||||
|
IUSE=""
|
||||||
|
|
||||||
|
DEPEND=">=x11-libs/xpa-${XPAPV}"
|
||||||
|
RDEPEND="${DEPEND}
|
||||||
|
dev-python/numpy[${PYTHON_USEDEP}]
|
||||||
|
dev-python/pyfits[${PYTHON_USEDEP}]"
|
||||||
|
|
||||||
|
DOCS=(changelog README)
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
rm -r xpa-${XPAPV} || die
|
||||||
|
sed -i \
|
||||||
|
-e "/py_modules/s|\],|\])|" \
|
||||||
|
-e '/data_files/,$ d' \
|
||||||
|
setup.py || die
|
||||||
|
sed -i \
|
||||||
|
-e "s|./xpa-${XPAPV}|${EROOT}/usr/$(get_libdir)|" \
|
||||||
|
xpa.py || die
|
||||||
|
sed -i \
|
||||||
|
-e "s|sys.path|${EROOT}/usr/bin|" \
|
||||||
|
ds9.py || die
|
||||||
|
distutils-r1_src_prepare
|
||||||
|
}
|
@ -1,2 +1 @@
|
|||||||
DIST pyelftools-0.20.tar.gz 278640 SHA256 d02e40a841a8cc38d78cdea8e497f601969e7270ebe00c7e671a3ce73f1cdf45 SHA512 41ca795c0dc84afb4bc6d58ccafc19690bc76ad0aeeb72d3d4edb8a4647ffccfd0b904ceb406f4db8d360f5d701c5f2c5a85ea0a0c6e507de28560dab9837071 WHIRLPOOL 8667f67080530222953e2fb485e418a52c61a49b5e4a0c74e957d7b61844b462b8e2976cc06d773a2ee86826c4c33574b71e82b617c7c274240dc199cc5db7fa
|
|
||||||
DIST pyelftools-0.21.tar.gz 283250 SHA256 a9a10d894c698ab3a2d909c3df1c3d88d0ab03811351c278b3f520204f33d834 SHA512 adddfe10756a26d694bb4a048104b04958337dc7a1ab023e4bb50b7fbf5d66fc5b6c4a077699757adb26bd6ffd8885a1908f3daae3d0acd65a704a11499308d3 WHIRLPOOL 1607c311e7b3ec463afe53b239f84f7b47878a613365c2f8809a15df4e5096d7d702a8dcbc91c357b3d5f28297106abaa16540842ad09a4dc2bdd1a648589389
|
DIST pyelftools-0.21.tar.gz 283250 SHA256 a9a10d894c698ab3a2d909c3df1c3d88d0ab03811351c278b3f520204f33d834 SHA512 adddfe10756a26d694bb4a048104b04958337dc7a1ab023e4bb50b7fbf5d66fc5b6c4a077699757adb26bd6ffd8885a1908f3daae3d0acd65a704a11499308d3 WHIRLPOOL 1607c311e7b3ec463afe53b239f84f7b47878a613365c2f8809a15df4e5096d7d702a8dcbc91c357b3d5f28297106abaa16540842ad09a4dc2bdd1a648589389
|
||||||
|
@ -1,266 +0,0 @@
|
|||||||
# HG changeset patch
|
|
||||||
# User Mike Frysinger <vapier@gentoo.org>
|
|
||||||
# Date 1352755639 18000
|
|
||||||
# Node ID a9c9b2f9ec964e6750dd6f9a96767fe2e9201d85
|
|
||||||
# Parent f3408c7b954910aa3a58e88196efba4954c0cc55
|
|
||||||
add support for parsing of the dynamic section/segment and its tags
|
|
||||||
|
|
||||||
diff -r f3408c7b9549 -r a9c9b2f9ec96 elftools/elf/dynamic.py
|
|
||||||
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
|
|
||||||
+++ b/elftools/elf/dynamic.py Mon Nov 12 16:27:19 2012 -0500
|
|
||||||
@@ -0,0 +1,115 @@
|
|
||||||
+#-------------------------------------------------------------------------------
|
|
||||||
+# elftools: elf/dynamic.py
|
|
||||||
+#
|
|
||||||
+# ELF Dynamic Tags
|
|
||||||
+#
|
|
||||||
+# Mike Frysinger (vapier@gentoo.org)
|
|
||||||
+# This code is in the public domain
|
|
||||||
+#-------------------------------------------------------------------------------
|
|
||||||
+from .sections import Section
|
|
||||||
+from .segments import Segment
|
|
||||||
+from ..common.utils import struct_parse
|
|
||||||
+
|
|
||||||
+from .enums import ENUM_D_TAG
|
|
||||||
+
|
|
||||||
+
|
|
||||||
+class DynamicTag(object):
|
|
||||||
+ """ Dynamic Tag object - representing a single dynamic tag entry from a
|
|
||||||
+ dynamic section.
|
|
||||||
+
|
|
||||||
+ Similarly to Section objects, allows dictionary-like access to the
|
|
||||||
+ dynamic tag.
|
|
||||||
+ """
|
|
||||||
+ def __init__(self, entry, elffile):
|
|
||||||
+ self.entry = entry
|
|
||||||
+ if entry.d_tag == 'DT_NEEDED' or \
|
|
||||||
+ entry.d_tag == 'DT_RPATH' or \
|
|
||||||
+ entry.d_tag == 'DT_RUNPATH':
|
|
||||||
+ dynstr = elffile.get_section_by_name('.dynstr')
|
|
||||||
+ setattr(self, entry.d_tag[3:].lower(), dynstr.get_string(self.entry.d_val))
|
|
||||||
+
|
|
||||||
+ def __getitem__(self, name):
|
|
||||||
+ """ Implement dict-like access to entries
|
|
||||||
+ """
|
|
||||||
+ return self.entry[name]
|
|
||||||
+
|
|
||||||
+ def __repr__(self):
|
|
||||||
+ return '<DynamicTag (%s): %r>' % (self.entry.d_tag, self.entry)
|
|
||||||
+
|
|
||||||
+ def __str__(self):
|
|
||||||
+ if self.entry.d_tag == 'DT_NEEDED' or \
|
|
||||||
+ self.entry.d_tag == 'DT_RPATH' or \
|
|
||||||
+ self.entry.d_tag == 'DT_RUNPATH':
|
|
||||||
+ s = '"%s"' % getattr(self, self.entry.d_tag[3:].lower())
|
|
||||||
+ else:
|
|
||||||
+ s = '%#x' % self.entry.d_ptr
|
|
||||||
+ return '<DynamicTag (%s) %s>' % (self.entry.d_tag, s)
|
|
||||||
+
|
|
||||||
+
|
|
||||||
+class Dynamic(object):
|
|
||||||
+ def __init__(self, stream, elffile, position):
|
|
||||||
+ self._stream = stream
|
|
||||||
+ self._elffile = elffile
|
|
||||||
+ self._elfstructs = elffile.structs
|
|
||||||
+ self._num_tags = -1;
|
|
||||||
+ self._offset = position
|
|
||||||
+ self._tagsize = self._elfstructs.Elf_Dyn.sizeof()
|
|
||||||
+
|
|
||||||
+ def iter_tags(self, type=None):
|
|
||||||
+ """ Yield all tags (limit to |type| if specified)
|
|
||||||
+ """
|
|
||||||
+ offset = self._offset - self._tagsize
|
|
||||||
+ for i in range(self.num_tags):
|
|
||||||
+ offset += self._tagsize
|
|
||||||
+ entry = struct_parse(
|
|
||||||
+ self._elfstructs.Elf_Dyn,
|
|
||||||
+ self._stream,
|
|
||||||
+ stream_pos=offset)
|
|
||||||
+ if type is not None and entry.d_tag != type:
|
|
||||||
+ continue
|
|
||||||
+ yield DynamicTag(entry, self._elffile)
|
|
||||||
+
|
|
||||||
+ def get_tag(self, n):
|
|
||||||
+ """ Get the tag at index #n from the file (DynamicTag object)
|
|
||||||
+ """
|
|
||||||
+ offset = self._offset + n * self._tagsize
|
|
||||||
+ entry = struct_parse(
|
|
||||||
+ self._elfstructs.Elf_Dyn,
|
|
||||||
+ self._stream,
|
|
||||||
+ stream_pos=offset)
|
|
||||||
+ return DynamicTag(entry, self._elffile)
|
|
||||||
+
|
|
||||||
+ @property
|
|
||||||
+ def num_tags(self):
|
|
||||||
+ """ Number of dynamic tags in the file
|
|
||||||
+ """
|
|
||||||
+ if self._num_tags != -1:
|
|
||||||
+ return self._num_tags
|
|
||||||
+
|
|
||||||
+ offset = self._offset
|
|
||||||
+ while True:
|
|
||||||
+ entry = struct_parse(
|
|
||||||
+ self._elfstructs.Elf_Dyn,
|
|
||||||
+ self._stream,
|
|
||||||
+ stream_pos=offset)
|
|
||||||
+ if entry.d_tag == 'DT_NULL':
|
|
||||||
+ self._num_tags = ((offset - self._offset) // self._tagsize) + 1
|
|
||||||
+ break
|
|
||||||
+ offset += self._tagsize
|
|
||||||
+ return self._num_tags
|
|
||||||
+
|
|
||||||
+
|
|
||||||
+class DynamicSection(Section, Dynamic):
|
|
||||||
+ """ ELF dynamic table section. Knows how to process the list of tags.
|
|
||||||
+ """
|
|
||||||
+ def __init__(self, header, name, stream, elffile):
|
|
||||||
+ Section.__init__(self, header, name, stream)
|
|
||||||
+ Dynamic.__init__(self, stream, elffile, self['sh_offset'])
|
|
||||||
+
|
|
||||||
+
|
|
||||||
+class DynamicSegment(Segment, Dynamic):
|
|
||||||
+ """ ELF dynamic table segment. Knows how to process the list of tags.
|
|
||||||
+ """
|
|
||||||
+ def __init__(self, header, stream, elffile):
|
|
||||||
+ Segment.__init__(self, header, stream)
|
|
||||||
+ Dynamic.__init__(self, stream, elffile, self['p_offset'])
|
|
||||||
diff -r f3408c7b9549 -r a9c9b2f9ec96 elftools/elf/elffile.py
|
|
||||||
--- a/elftools/elf/elffile.py Thu Jul 05 06:32:09 2012 +0300
|
|
||||||
+++ b/elftools/elf/elffile.py Mon Nov 12 16:27:19 2012 -0500
|
|
||||||
@@ -13,6 +13,7 @@
|
|
||||||
from .structs import ELFStructs
|
|
||||||
from .sections import (
|
|
||||||
Section, StringTableSection, SymbolTableSection, NullSection)
|
|
||||||
+from .dynamic import DynamicSection, DynamicSegment
|
|
||||||
from .relocation import RelocationSection, RelocationHandler
|
|
||||||
from .segments import Segment, InterpSegment
|
|
||||||
from .enums import ENUM_RELOC_TYPE_i386, ENUM_RELOC_TYPE_x64
|
|
||||||
@@ -208,6 +209,8 @@
|
|
||||||
segtype = segment_header['p_type']
|
|
||||||
if segtype == 'PT_INTERP':
|
|
||||||
return InterpSegment(segment_header, self.stream)
|
|
||||||
+ elif segtype == 'PT_DYNAMIC':
|
|
||||||
+ return DynamicSegment(segment_header, self.stream, self)
|
|
||||||
else:
|
|
||||||
return Segment(segment_header, self.stream)
|
|
||||||
|
|
||||||
@@ -241,6 +244,8 @@
|
|
||||||
elif sectype in ('SHT_REL', 'SHT_RELA'):
|
|
||||||
return RelocationSection(
|
|
||||||
section_header, name, self.stream, self)
|
|
||||||
+ elif sectype == 'SHT_DYNAMIC':
|
|
||||||
+ return DynamicSection(section_header, name, self.stream, self)
|
|
||||||
else:
|
|
||||||
return Section(section_header, name, self.stream)
|
|
||||||
|
|
||||||
diff -r f3408c7b9549 -r a9c9b2f9ec96 elftools/elf/enums.py
|
|
||||||
--- a/elftools/elf/enums.py Thu Jul 05 06:32:09 2012 +0300
|
|
||||||
+++ b/elftools/elf/enums.py Mon Nov 12 16:27:19 2012 -0500
|
|
||||||
@@ -186,6 +186,82 @@
|
|
||||||
_default_=Pass,
|
|
||||||
)
|
|
||||||
|
|
||||||
+# d_tag
|
|
||||||
+ENUM_D_TAG = dict(
|
|
||||||
+ DT_NULL=0,
|
|
||||||
+ DT_NEEDED=1,
|
|
||||||
+ DT_PLTRELSZ=2,
|
|
||||||
+ DT_PLTGOT=3,
|
|
||||||
+ DT_HASH=4,
|
|
||||||
+ DT_STRTAB=5,
|
|
||||||
+ DT_SYMTAB=6,
|
|
||||||
+ DT_RELA=7,
|
|
||||||
+ DT_RELASZ=8,
|
|
||||||
+ DT_RELAENT=9,
|
|
||||||
+ DT_STRSZ=10,
|
|
||||||
+ DT_SYMENT=11,
|
|
||||||
+ DT_INIT=12,
|
|
||||||
+ DT_FINI=13,
|
|
||||||
+ DT_SONAME=14,
|
|
||||||
+ DT_RPATH=15,
|
|
||||||
+ DT_SYMBOLIC=16,
|
|
||||||
+ DT_REL=17,
|
|
||||||
+ DT_RELSZ=18,
|
|
||||||
+ DT_RELENT=19,
|
|
||||||
+ DT_PLTREL=20,
|
|
||||||
+ DT_DEBUG=21,
|
|
||||||
+ DT_TEXTREL=22,
|
|
||||||
+ DT_JMPREL=23,
|
|
||||||
+ DT_BIND_NOW=24,
|
|
||||||
+ DT_INIT_ARRAY=25,
|
|
||||||
+ DT_FINI_ARRAY=26,
|
|
||||||
+ DT_INIT_ARRAYSZ=27,
|
|
||||||
+ DT_FINI_ARRAYSZ=28,
|
|
||||||
+ DT_RUNPATH=29,
|
|
||||||
+ DT_FLAGS=30,
|
|
||||||
+ DT_ENCODING=32,
|
|
||||||
+ DT_PREINIT_ARRAY=32,
|
|
||||||
+ DT_PREINIT_ARRAYSZ=33,
|
|
||||||
+ DT_NUM=34,
|
|
||||||
+ DT_LOOS=0x6000000d,
|
|
||||||
+ DT_HIOS=0x6ffff000,
|
|
||||||
+ DT_LOPROC=0x70000000,
|
|
||||||
+ DT_HIPROC=0x7fffffff,
|
|
||||||
+ DT_PROCNUM=0x35,
|
|
||||||
+ DT_VALRNGLO=0x6ffffd00,
|
|
||||||
+ DT_GNU_PRELINKED=0x6ffffdf5,
|
|
||||||
+ DT_GNU_CONFLICTSZ=0x6ffffdf6,
|
|
||||||
+ DT_GNU_LIBLISTSZ=0x6ffffdf7,
|
|
||||||
+ DT_CHECKSUM=0x6ffffdf8,
|
|
||||||
+ DT_PLTPADSZ=0x6ffffdf9,
|
|
||||||
+ DT_MOVEENT=0x6ffffdfa,
|
|
||||||
+ DT_MOVESZ=0x6ffffdfb,
|
|
||||||
+ DT_SYMINSZ=0x6ffffdfe,
|
|
||||||
+ DT_SYMINENT=0x6ffffdff,
|
|
||||||
+ DT_GNU_HASH=0x6ffffef5,
|
|
||||||
+ DT_TLSDESC_PLT=0x6ffffef6,
|
|
||||||
+ DT_TLSDESC_GOT=0x6ffffef7,
|
|
||||||
+ DT_GNU_CONFLICT=0x6ffffef8,
|
|
||||||
+ DT_GNU_LIBLIST=0x6ffffef9,
|
|
||||||
+ DT_CONFIG=0x6ffffefa,
|
|
||||||
+ DT_DEPAUDIT=0x6ffffefb,
|
|
||||||
+ DT_AUDIT=0x6ffffefc,
|
|
||||||
+ DT_PLTPAD=0x6ffffefd,
|
|
||||||
+ DT_MOVETAB=0x6ffffefe,
|
|
||||||
+ DT_SYMINFO=0x6ffffeff,
|
|
||||||
+ DT_VERSYM=0x6ffffff0,
|
|
||||||
+ DT_RELACOUNT=0x6ffffff9,
|
|
||||||
+ DT_RELCOUNT=0x6ffffffa,
|
|
||||||
+ DT_FLAGS_1=0x6ffffffb,
|
|
||||||
+ DT_VERDEF=0x6ffffffc,
|
|
||||||
+ DT_VERDEFNUM=0x6ffffffd,
|
|
||||||
+ DT_VERNEED=0x6ffffffe,
|
|
||||||
+ DT_VERNEEDNUM=0x6fffffff,
|
|
||||||
+ DT_AUXILIARY=0x7ffffffd,
|
|
||||||
+ DT_FILTER=0x7fffffff,
|
|
||||||
+ _default_=Pass,
|
|
||||||
+)
|
|
||||||
+
|
|
||||||
ENUM_RELOC_TYPE_i386 = dict(
|
|
||||||
R_386_NONE=0,
|
|
||||||
R_386_32=1,
|
|
||||||
diff -r f3408c7b9549 -r a9c9b2f9ec96 elftools/elf/structs.py
|
|
||||||
--- a/elftools/elf/structs.py Thu Jul 05 06:32:09 2012 +0300
|
|
||||||
+++ b/elftools/elf/structs.py Mon Nov 12 16:27:19 2012 -0500
|
|
||||||
@@ -72,6 +72,7 @@
|
|
||||||
self._create_shdr()
|
|
||||||
self._create_sym()
|
|
||||||
self._create_rel()
|
|
||||||
+ self._create_dyn()
|
|
||||||
|
|
||||||
def _create_ehdr(self):
|
|
||||||
self.Elf_Ehdr = Struct('Elf_Ehdr',
|
|
||||||
@@ -165,6 +166,13 @@
|
|
||||||
self.Elf_sxword('r_addend'),
|
|
||||||
)
|
|
||||||
|
|
||||||
+ def _create_dyn(self):
|
|
||||||
+ self.Elf_Dyn = Struct('Elf_Dyn',
|
|
||||||
+ Enum(self.Elf_sxword('d_tag'), **ENUM_D_TAG),
|
|
||||||
+ self.Elf_xword('d_val'),
|
|
||||||
+ Value('d_ptr', lambda ctx: ctx['d_val']),
|
|
||||||
+ )
|
|
||||||
+
|
|
||||||
def _create_sym(self):
|
|
||||||
# st_info is hierarchical. To access the type, use
|
|
||||||
# container['st_info']['type']
|
|
@ -1,94 +0,0 @@
|
|||||||
# HG changeset patch
|
|
||||||
# User Mike Frysinger <vapier@gentoo.org>
|
|
||||||
# Date 1354166686 18000
|
|
||||||
# Node ID 94901c23fe58ca227aacadcdc5d7ad3045171b24
|
|
||||||
# Parent a9c9b2f9ec964e6750dd6f9a96767fe2e9201d85
|
|
||||||
rework dynamic tag walking to avoid doing it twice on the first call to iter_tags
|
|
||||||
|
|
||||||
Based on suggestions from David James
|
|
||||||
|
|
||||||
diff -r a9c9b2f9ec96 -r 94901c23fe58 elftools/elf/dynamic.py
|
|
||||||
--- a/elftools/elf/dynamic.py Mon Nov 12 16:27:19 2012 -0500
|
|
||||||
+++ b/elftools/elf/dynamic.py Thu Nov 29 00:24:46 2012 -0500
|
|
||||||
@@ -6,6 +6,8 @@
|
|
||||||
# Mike Frysinger (vapier@gentoo.org)
|
|
||||||
# This code is in the public domain
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
+import itertools
|
|
||||||
+
|
|
||||||
from .sections import Section
|
|
||||||
from .segments import Segment
|
|
||||||
from ..common.utils import struct_parse
|
|
||||||
@@ -20,11 +22,12 @@
|
|
||||||
Similarly to Section objects, allows dictionary-like access to the
|
|
||||||
dynamic tag.
|
|
||||||
"""
|
|
||||||
+
|
|
||||||
+ _HANDLED_TAGS = frozenset(['DT_NEEDED', 'DT_RPATH', 'DT_RUNPATH'])
|
|
||||||
+
|
|
||||||
def __init__(self, entry, elffile):
|
|
||||||
self.entry = entry
|
|
||||||
- if entry.d_tag == 'DT_NEEDED' or \
|
|
||||||
- entry.d_tag == 'DT_RPATH' or \
|
|
||||||
- entry.d_tag == 'DT_RUNPATH':
|
|
||||||
+ if entry.d_tag in self._HANDLED_TAGS:
|
|
||||||
dynstr = elffile.get_section_by_name('.dynstr')
|
|
||||||
setattr(self, entry.d_tag[3:].lower(), dynstr.get_string(self.entry.d_val))
|
|
||||||
|
|
||||||
@@ -37,9 +40,7 @@
|
|
||||||
return '<DynamicTag (%s): %r>' % (self.entry.d_tag, self.entry)
|
|
||||||
|
|
||||||
def __str__(self):
|
|
||||||
- if self.entry.d_tag == 'DT_NEEDED' or \
|
|
||||||
- self.entry.d_tag == 'DT_RPATH' or \
|
|
||||||
- self.entry.d_tag == 'DT_RUNPATH':
|
|
||||||
+ if self.entry.d_tag in self._HANDLED_TAGS:
|
|
||||||
s = '"%s"' % getattr(self, self.entry.d_tag[3:].lower())
|
|
||||||
else:
|
|
||||||
s = '%#x' % self.entry.d_ptr
|
|
||||||
@@ -58,16 +59,12 @@
|
|
||||||
def iter_tags(self, type=None):
|
|
||||||
""" Yield all tags (limit to |type| if specified)
|
|
||||||
"""
|
|
||||||
- offset = self._offset - self._tagsize
|
|
||||||
- for i in range(self.num_tags):
|
|
||||||
- offset += self._tagsize
|
|
||||||
- entry = struct_parse(
|
|
||||||
- self._elfstructs.Elf_Dyn,
|
|
||||||
- self._stream,
|
|
||||||
- stream_pos=offset)
|
|
||||||
- if type is not None and entry.d_tag != type:
|
|
||||||
- continue
|
|
||||||
- yield DynamicTag(entry, self._elffile)
|
|
||||||
+ for n in itertools.count():
|
|
||||||
+ tag = self.get_tag(n)
|
|
||||||
+ if type is None or tag.entry.d_tag == type:
|
|
||||||
+ yield tag
|
|
||||||
+ if tag.entry.d_tag == 'DT_NULL':
|
|
||||||
+ break
|
|
||||||
|
|
||||||
def get_tag(self, n):
|
|
||||||
""" Get the tag at index #n from the file (DynamicTag object)
|
|
||||||
@@ -86,17 +83,11 @@
|
|
||||||
if self._num_tags != -1:
|
|
||||||
return self._num_tags
|
|
||||||
|
|
||||||
- offset = self._offset
|
|
||||||
- while True:
|
|
||||||
- entry = struct_parse(
|
|
||||||
- self._elfstructs.Elf_Dyn,
|
|
||||||
- self._stream,
|
|
||||||
- stream_pos=offset)
|
|
||||||
- if entry.d_tag == 'DT_NULL':
|
|
||||||
- self._num_tags = ((offset - self._offset) // self._tagsize) + 1
|
|
||||||
- break
|
|
||||||
- offset += self._tagsize
|
|
||||||
- return self._num_tags
|
|
||||||
+ for n in itertools.count():
|
|
||||||
+ tag = self.get_tag(n)
|
|
||||||
+ if tag.entry.d_tag == 'DT_NULL':
|
|
||||||
+ self._num_tags = n
|
|
||||||
+ return n
|
|
||||||
|
|
||||||
|
|
||||||
class DynamicSection(Section, Dynamic):
|
|
@ -0,0 +1,143 @@
|
|||||||
|
changeset: 207:92736c403d53
|
||||||
|
tag: tip
|
||||||
|
user: Mike Frysinger <vapier@gentoo.org>
|
||||||
|
date: Mon Apr 22 19:02:21 2013 -0400
|
||||||
|
summary: support parsing of dynamic ELFs w/out section headers
|
||||||
|
|
||||||
|
At runtime, ELFs do not use the section headers at all. Instead, only
|
||||||
|
the program segments and dynamic tags get used. This means you can
|
||||||
|
strip the section table completely from an ELF and have it still work.
|
||||||
|
|
||||||
|
In practice, people rarely do this, but it's not unheard of. Make the
|
||||||
|
Dynamic tags work even in these cases by loading the strings table the
|
||||||
|
same way the runtime loader does:
|
||||||
|
- parse the symtab address from DT_STRTAB
|
||||||
|
- locate the file offset via the program segments
|
||||||
|
|
||||||
|
In order to avoid circular deps (parsing a dyntag requires walking parsed
|
||||||
|
dyntags), add a set of internal funcs for returning the raw values.
|
||||||
|
|
||||||
|
diff --git a/elftools/elf/dynamic.py b/elftools/elf/dynamic.py
|
||||||
|
--- a/elftools/elf/dynamic.py
|
||||||
|
+++ b/elftools/elf/dynamic.py
|
||||||
|
@@ -10,11 +10,26 @@
|
||||||
|
|
||||||
|
from .sections import Section
|
||||||
|
from .segments import Segment
|
||||||
|
-from ..common.utils import struct_parse
|
||||||
|
+from ..common.utils import struct_parse, parse_cstring_from_stream
|
||||||
|
|
||||||
|
from .enums import ENUM_D_TAG
|
||||||
|
|
||||||
|
|
||||||
|
+class _DynamicStringTable(object):
|
||||||
|
+ """ Bare string table based on values found via ELF dynamic tags and
|
||||||
|
+ loadable segments only. Good enough for get_string() only.
|
||||||
|
+ """
|
||||||
|
+ def __init__(self, stream, table_offset):
|
||||||
|
+ self._stream = stream
|
||||||
|
+ self._table_offset = table_offset
|
||||||
|
+
|
||||||
|
+ def get_string(self, offset):
|
||||||
|
+ """ Get the string stored at the given offset in this string table.
|
||||||
|
+ """
|
||||||
|
+ return parse_cstring_from_stream(self._stream,
|
||||||
|
+ self._table_offset + offset)
|
||||||
|
+
|
||||||
|
+
|
||||||
|
class DynamicTag(object):
|
||||||
|
""" Dynamic Tag object - representing a single dynamic tag entry from a
|
||||||
|
dynamic section.
|
||||||
|
@@ -27,10 +42,9 @@
|
||||||
|
_HANDLED_TAGS = frozenset(
|
||||||
|
['DT_NEEDED', 'DT_RPATH', 'DT_RUNPATH', 'DT_SONAME'])
|
||||||
|
|
||||||
|
- def __init__(self, entry, elffile):
|
||||||
|
+ def __init__(self, entry, dynstr):
|
||||||
|
self.entry = entry
|
||||||
|
- if entry.d_tag in self._HANDLED_TAGS:
|
||||||
|
- dynstr = elffile.get_section_by_name(b'.dynstr')
|
||||||
|
+ if entry.d_tag in self._HANDLED_TAGS and dynstr:
|
||||||
|
setattr(self, entry.d_tag[3:].lower(),
|
||||||
|
dynstr.get_string(self.entry.d_val))
|
||||||
|
|
||||||
|
@@ -60,26 +74,66 @@
|
||||||
|
self._num_tags = -1
|
||||||
|
self._offset = position
|
||||||
|
self._tagsize = self._elfstructs.Elf_Dyn.sizeof()
|
||||||
|
+ self.__string_table = None
|
||||||
|
+
|
||||||
|
+ @property
|
||||||
|
+ def _string_table(self):
|
||||||
|
+ if self.__string_table:
|
||||||
|
+ return self.__string_table
|
||||||
|
+
|
||||||
|
+ # If the ELF has stripped its section table (which is unusual, but
|
||||||
|
+ # perfectly valid), we need to use the dynamic tags to locate the
|
||||||
|
+ # dynamic string table.
|
||||||
|
+ strtab = None
|
||||||
|
+ for tag in self._iter_tags(type='DT_STRTAB'):
|
||||||
|
+ strtab = tag['d_val']
|
||||||
|
+ break
|
||||||
|
+ # If we found a dynamic string table, locate the offset in the file
|
||||||
|
+ # by using the program headers.
|
||||||
|
+ if strtab:
|
||||||
|
+ for segment in self._elffile.iter_segments():
|
||||||
|
+ if (strtab >= segment['p_vaddr'] and
|
||||||
|
+ strtab < segment['p_vaddr'] + segment['p_filesz']):
|
||||||
|
+ self.__string_table = _DynamicStringTable(
|
||||||
|
+ self._stream,
|
||||||
|
+ segment['p_offset'] + (strtab - segment['p_vaddr']))
|
||||||
|
+ return self.__string_table
|
||||||
|
+
|
||||||
|
+ # That didn't work for some reason. Let's use the section header
|
||||||
|
+ # even though this ELF is super weird.
|
||||||
|
+ self.__string_table = self._elffile.get_section_by_name(b'.dynstr')
|
||||||
|
+
|
||||||
|
+ return self.__string_table
|
||||||
|
+
|
||||||
|
+ def _iter_tags(self, type=None):
|
||||||
|
+ """ Yield all raw tags (limit to |type| if specified)
|
||||||
|
+ """
|
||||||
|
+ for n in itertools.count():
|
||||||
|
+ tag = self._get_tag(n)
|
||||||
|
+ if type is None or tag['d_tag'] == type:
|
||||||
|
+ yield tag
|
||||||
|
+ if tag['d_tag'] == 'DT_NULL':
|
||||||
|
+ break
|
||||||
|
|
||||||
|
def iter_tags(self, type=None):
|
||||||
|
""" Yield all tags (limit to |type| if specified)
|
||||||
|
"""
|
||||||
|
- for n in itertools.count():
|
||||||
|
- tag = self.get_tag(n)
|
||||||
|
- if type is None or tag.entry.d_tag == type:
|
||||||
|
- yield tag
|
||||||
|
- if tag.entry.d_tag == 'DT_NULL':
|
||||||
|
- break
|
||||||
|
+ for tag in self._iter_tags(type=type):
|
||||||
|
+ yield DynamicTag(tag, self._string_table)
|
||||||
|
+
|
||||||
|
+ def _get_tag(self, n):
|
||||||
|
+ """ Get the raw tag at index #n from the file
|
||||||
|
+ """
|
||||||
|
+ offset = self._offset + n * self._tagsize
|
||||||
|
+ return struct_parse(
|
||||||
|
+ self._elfstructs.Elf_Dyn,
|
||||||
|
+ self._stream,
|
||||||
|
+ stream_pos=offset)
|
||||||
|
|
||||||
|
def get_tag(self, n):
|
||||||
|
""" Get the tag at index #n from the file (DynamicTag object)
|
||||||
|
"""
|
||||||
|
- offset = self._offset + n * self._tagsize
|
||||||
|
- entry = struct_parse(
|
||||||
|
- self._elfstructs.Elf_Dyn,
|
||||||
|
- self._stream,
|
||||||
|
- stream_pos=offset)
|
||||||
|
- return DynamicTag(entry, self._elffile)
|
||||||
|
+ return DynamicTag(self._get_tag(n), self._string_table)
|
||||||
|
|
||||||
|
def num_tags(self):
|
||||||
|
""" Number of dynamic tags in the file
|
||||||
|
|
@ -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/dev-python/pyelftools/pyelftools-0.20-r2.ebuild,v 1.1 2013/01/21 02:39:53 idella4 Exp $
|
|
||||||
|
|
||||||
EAPI=5
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( python{2_7,3_2} )
|
|
||||||
inherit distutils-r1 eutils
|
|
||||||
|
|
||||||
DESCRIPTION="pure-Python library for parsing and analyzing ELF files and DWARF debugging information"
|
|
||||||
HOMEPAGE="http://pypi.python.org/pypi/pyelftools https://bitbucket.org/eliben/pyelftools"
|
|
||||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="public-domain"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
distutils-r1_src_prepare
|
|
||||||
epatch "${FILESDIR}"/${P}-dyntags-{1,2}.patch
|
|
||||||
}
|
|
||||||
|
|
||||||
python_test() {
|
|
||||||
# readelf_tests fails
|
|
||||||
local test
|
|
||||||
for test in all_unittests examples_test; do
|
|
||||||
PYTHONPATH=$(ls -d build-${PYTHON_ABI}/lib/) "${PYTHON}" ./test/run_${test}.py || die
|
|
||||||
done
|
|
||||||
}
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue