diff options
author | Jonathan Callen <abcd@gentoo.org> | 2010-02-21 01:38:17 +0000 |
---|---|---|
committer | Jonathan Callen <abcd@gentoo.org> | 2010-02-21 01:38:17 +0000 |
commit | dea532cf2dc189d0785e89d16aa50f8138986f3a (patch) | |
tree | ef5121d90ed43a53efd1a03fd05245954be53a39 /dev-util/pmk | |
parent | Transfer prefix keywords, add patch for Darwin (diff) | |
download | gentoo-2-dea532cf2dc189d0785e89d16aa50f8138986f3a.tar.gz gentoo-2-dea532cf2dc189d0785e89d16aa50f8138986f3a.tar.bz2 gentoo-2-dea532cf2dc189d0785e89d16aa50f8138986f3a.zip |
Transfer prefix keywords, bump EAPI
(Portage version: -svn/cvs/Linux i686)
Diffstat (limited to 'dev-util/pmk')
-rw-r--r-- | dev-util/pmk/ChangeLog | 7 | ||||
-rw-r--r-- | dev-util/pmk/pmk-0.10.4.ebuild | 31 |
2 files changed, 22 insertions, 16 deletions
diff --git a/dev-util/pmk/ChangeLog b/dev-util/pmk/ChangeLog index 67f653b152bd..304e977f1cec 100644 --- a/dev-util/pmk/ChangeLog +++ b/dev-util/pmk/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for dev-util/pmk -# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-util/pmk/ChangeLog,v 1.12 2008/09/25 14:29:10 hawking Exp $ +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-util/pmk/ChangeLog,v 1.13 2010/02/21 01:38:17 abcd Exp $ + + 21 Feb 2010; Jonathan Callen <abcd@gentoo.org> pmk-0.10.4.ebuild: + Transfer prefix keywords, bump EAPI *pmk-0.10.4 (25 Sep 2008) diff --git a/dev-util/pmk/pmk-0.10.4.ebuild b/dev-util/pmk/pmk-0.10.4.ebuild index 07efb778c8c4..4e2d43198b1f 100644 --- a/dev-util/pmk/pmk-0.10.4.ebuild +++ b/dev-util/pmk/pmk-0.10.4.ebuild @@ -1,6 +1,8 @@ -# Copyright 1999-2008 Gentoo Foundation +# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-util/pmk/pmk-0.10.4.ebuild,v 1.1 2008/09/25 14:29:10 hawking Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-util/pmk/pmk-0.10.4.ebuild,v 1.2 2010/02/21 01:38:17 abcd Exp $ + +EAPI=3 inherit toolchain-funcs @@ -10,13 +12,13 @@ SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" LICENSE="BSD" SLOT="0" -KEYWORDS="~amd64 ~x86 ~ppc" +KEYWORDS="~amd64 ~ppc ~x86 ~x86-linux ~ppc-macos" IUSE="" DEPEND="" RDEPEND="" -src_unpack() { +src_prepare() { unpack ${A} cd "${S}" @@ -29,29 +31,30 @@ src_unpack() { EOF } -src_compile() { +src_configure() { tc-export CC CPP AS - ./pmkcfg.sh -p /usr || die "Config failed" - emake || die "Build failed" + export SYSCONFDIR="${EPREFIX}"/etc + export PREFIX="${EPREFIX}"/usr + ./pmkcfg.sh autodetected || die "Config failed" } src_install () { - make DESTDIR="${D}" MANDIR=/usr/share/man install || die "make failed" + emake -j1 DESTDIR="${D}" MANDIR="${EPREFIX}/usr/share/man" install || die "make failed" dodoc BUGS Changelog README STATUS TODO || die "dodoc failed" } pkg_postinst() { - if [[ ! -f "${ROOT}"/etc/pmk/pmk.conf ]] ; then + if [[ ! -f ${EROOT}etc/pmk/pmk.conf ]] ; then einfo - einfo "${ROOT}etc/pmk/pmk.conf doesn't exist." + einfo "${EROOT}etc/pmk/pmk.conf doesn't exist." einfo "Running pmksetup to generate an initial pmk.conf." einfo # create one with initial values - "${ROOT}"/usr/bin/pmksetup - # run it again to reset PREFIX from /usr/local to /usr - "${ROOT}"/usr/bin/pmksetup -u PREFIX=\"/usr\" + "${EROOT}"usr/bin/pmksetup + # run it again to reset PREFIX from /usr/local to ${EPREFIX}/usr + "${EROOT}"usr/bin/pmksetup -u "PREFIX=\"${EPREFIX}/usr\"" # remove the automatically created backup from the extra run - rm -f "${ROOT}"/etc/pmk/pmk.conf.bak + rm -f "${EROOT}"etc/pmk/pmk.conf.bak fi } |