summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetteri Räty <betelgeuse@gentoo.org>2009-08-16 09:29:02 +0000
committerPetteri Räty <betelgeuse@gentoo.org>2009-08-16 09:29:02 +0000
commitbcbc1c3df26381cc402c7c133f77620dd7630ad1 (patch)
tree00d0fc3930ba06d3d5e2fb8a778bd9ba6bb0d4ee /x11-misc/alock/alock-60-r3.ebuild
parentMigrate to EAPI 2 in order to drop built_with_use call. (diff)
downloadhistorical-bcbc1c3df26381cc402c7c133f77620dd7630ad1.tar.gz
historical-bcbc1c3df26381cc402c7c133f77620dd7630ad1.tar.bz2
historical-bcbc1c3df26381cc402c7c133f77620dd7630ad1.zip
Migrate to EAPI 2 in order to drop built_with_use call.
Package-Manager: portage-2.2_rc38/cvs/Linux i686
Diffstat (limited to 'x11-misc/alock/alock-60-r3.ebuild')
-rw-r--r--x11-misc/alock/alock-60-r3.ebuild31
1 files changed, 12 insertions, 19 deletions
diff --git a/x11-misc/alock/alock-60-r3.ebuild b/x11-misc/alock/alock-60-r3.ebuild
index 8e9b34c39cc2..a733de6f7961 100644
--- a/x11-misc/alock/alock-60-r3.ebuild
+++ b/x11-misc/alock/alock-60-r3.ebuild
@@ -1,6 +1,8 @@
-# Copyright 1999-2008 Gentoo Foundation
+# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/x11-misc/alock/alock-60-r3.ebuild,v 1.5 2008/05/12 08:42:34 nelchael Exp $
+# $Header: /var/cvsroot/gentoo-x86/x11-misc/alock/alock-60-r3.ebuild,v 1.6 2009/08/16 09:29:02 betelgeuse Exp $
+
+EAPI="2"
inherit eutils
@@ -17,43 +19,34 @@ IUSE="imlib pam"
DEPEND="x11-libs/libX11
x11-libs/libXext
x11-libs/libXpm
- imlib? ( media-libs/imlib2 )
+ imlib? ( media-libs/imlib2[X] )
pam? ( virtual/pam )"
RDEPEND="${DEPEND}"
S=${WORKDIR}/alock-svn-${PV}
-pkg_setup() {
- if use imlib && ! built_with_use media-libs/imlib2 X ; then
- eerror "media-libs/imlib2 has to be built with X support"
- die "emerge media-libs/imlib2 with USE=\"X\""
- fi
-}
-
-src_unpack() {
- unpack ${A}
+src_prepare() {
sed -i 's|\$(DESTDIR)\$(prefix)/man|\$(DESTDIR)\$(prefix)/share/man|g' \
"${S}"/Makefile || die "sed failed"
}
-src_compile() {
+src_configure() {
econf --with-all \
$(use_with pam) \
$(use_with imlib) \
|| die "configure failed"
- emake || die "make failed"
}
src_install() {
- dobin src/alock
- doman alock.1
- dodoc README.txt LICENSE.txt CHANGELOG.txt
+ dobin src/alock || die
+ doman alock.1 || die
+ dodoc README.txt LICENSE.txt CHANGELOG.txt || die
insinto /usr/share/alock/xcursors
- doins contrib/xcursor-*
+ doins contrib/xcursor-* || die
insinto /usr/share/alock/bitmaps
- doins bitmaps/*
+ doins bitmaps/* || die
}
pkg_postinst() {