From: Daniel Pielmeier Date: Tue, 16 Mar 2010 17:04:56 +0000 (+0000) Subject: Revision bump to make use of the new python eclass functions. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=766f9ef16864b95a8efa0ac332585da703390a10;p=gentoo.git Revision bump to make use of the new python eclass functions. Package-Manager: portage-2.1.7.17/cvs/Linux i686 --- diff --git a/app-portage/pfl/ChangeLog b/app-portage/pfl/ChangeLog index 155223864594..fd993d4de77b 100644 --- a/app-portage/pfl/ChangeLog +++ b/app-portage/pfl/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for app-portage/pfl # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-portage/pfl/ChangeLog,v 1.3 2010/01/21 17:22:15 fauli Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-portage/pfl/ChangeLog,v 1.4 2010/03/16 17:04:56 billie Exp $ + +*pfl-1.8.1-r1 (16 Mar 2010) + + 16 Mar 2010; Daniel Pielmeier +pfl-1.8.1-r1.ebuild: + Revision bump to make use of the new python eclass functions. 21 Jan 2010; Christian Faulhammer pfl-1.8.1.ebuild: stable x86, bug 301660 diff --git a/app-portage/pfl/Manifest b/app-portage/pfl/Manifest index 78f43a84f11c..53646fc18249 100644 --- a/app-portage/pfl/Manifest +++ b/app-portage/pfl/Manifest @@ -1,15 +1,6 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA1 - DIST e-file 2640 RMD160 e9e1a0347035c6c38ea809cb3551d48258e9eb64 SHA1 75a95ba7f4732c8cac4af8e3a401a0b895a9154f SHA256 21d89d1faaf50d25f24c9e205d442a6e19b5898a44bcbc466a3eb112322029e4 DIST pfl-1.8.1 8693 RMD160 bbac01473c7061b03def0ea999bd61709c946fc6 SHA1 c306a17d8a93ec992757e6ea8dc001777f76050b SHA256 40c34e9c366292fec5b047cdf3a6a32178b3f9ac7eae9304834f549067f5ae09 +EBUILD pfl-1.8.1-r1.ebuild 1566 RMD160 a19435a44c91dff077ed38697afe68ab883a48d0 SHA1 222dabc1f8c1e828cbf558241e019719a40620ff SHA256 d112070741cb20d47e55967998aeb12d8de761898ea89944315c88d19d12bf86 EBUILD pfl-1.8.1.ebuild 1591 RMD160 031df822038a13cec3b76e456a33034ae27c4f25 SHA1 dab0363b47611c9b7aae37d85b76628920893700 SHA256 124433b9f0695c28779f5cc06d2ad575303bd14843954dc799073a34e5aa8185 -MISC ChangeLog 619 RMD160 68f4e277b32106e77b3a8c2314988367452a678f SHA1 7ebefb896bda76e32f908f710e2bf94358fa47b1 SHA256 595f4ed0381ca0e1ae991ec2bdc705f9a267c8fc990d4916d0c25aed6268517a +MISC ChangeLog 788 RMD160 af85f3fd88ccde75a87840f6b4677ed158e86448 SHA1 7ed291f3cb45561f1404c445bbe81180cbe5ab56 SHA256 b9ece11a97ed0430bd5eab8ab8b9ea6809e1eccaaf62da90a8c389ca365ca3ca MISC metadata.xml 508 RMD160 e65b171c5641bfdbe2178d3a98b855bc56a9b393 SHA1 3980469ab36bd334d6f909884db7db9031143105 SHA256 857675a67484c97e700732df4e1d08fa27b57f9eb328dc03f1a0189be483035e ------BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0.11 (GNU/Linux) - -iEYEARECAAYFAktYjUwACgkQNQqtfCuFneNBIQCeLbKDeZLtUkj0iEqZgkLxKH8x -cd8An0SajFFoK/WKQ3zSYNn0uLYAzyeu -=jdzj ------END PGP SIGNATURE----- diff --git a/app-portage/pfl/pfl-1.8.1-r1.ebuild b/app-portage/pfl/pfl-1.8.1-r1.ebuild new file mode 100644 index 000000000000..2efdbf5177aa --- /dev/null +++ b/app-portage/pfl/pfl-1.8.1-r1.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-portage/pfl/pfl-1.8.1-r1.ebuild,v 1.1 2010/03/16 17:04:56 billie Exp $ + +PYTHON_DEPEND=2 + +inherit python multilib + +DESCRIPTION="PFL is an online searchable file/package database for Gentoo" +HOMEPAGE="http://www.portagefilelist.de/index.php/Special:PFLQuery2" +SRC_URI="http://files.portagefilelist.de/${P} + http://files.portagefilelist.de/e-file" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="network-cron" + +DEPEND="" +RDEPEND="${DEPEND} + net-misc/curl + sys-apps/portage" + +RESTRICT="mirror" + +src_unpack() { + cp "${DISTDIR}/${P}" "${WORKDIR}/${PN}.py" + cp "${DISTDIR}/e-file" "${WORKDIR}/e-file" +} + +src_install() { + if use network-cron ; then + cat >> "${T}/${PN}" <<- EOF + #!/bin/sh + exec nice $(PYTHON) -O $(python_get_sitedir)/${PN}/${PN}.py >/dev/null + EOF + + exeinto /etc/cron.weekly + doexe "${T}/${PN}" || die "install ${PN} cron file failed" + fi + + exeinto $(python_get_sitedir)/${PN} + doexe ${PN}.py || die "install ${PN}.py failed" + + dobin e-file || die "install e-file failed" + + dodir /var/lib/${PN} || die "directory creation failed" + fowners 0:portage /var/lib/${PN} + fperms 0775 /var/lib/${PN} +} + +pkg_postinst() { + python_mod_optimize $(python_get_sitedir)/${PN} + + if [[ ! -e "${ROOT%/}/var/lib/${PN}/lastrun" ]]; then + echo -n 0 > "${ROOT%/}/var/lib/${PN}/lastrun" + chown -R 0:portage "${ROOT%/}/var/lib/${PN}" + chmod -R 775 "${ROOT%/}/var/lib/${PN}" + fi +} + +pkg_postrm() { + python_mod_cleanup +}