summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2010-07-08 11:45:16 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2010-07-08 11:45:16 +0000
commit7eb0bccb64a7bff87df762c0a68f0eb4d23510a1 (patch)
treea703fd69c65fda1ea9b204d256b1743cb5d425ef /x11-misc/alock/alock-94.ebuild
parentFixing ChangeLog manifest (diff)
downloadgentoo-2-7eb0bccb64a7bff87df762c0a68f0eb4d23510a1.tar.gz
gentoo-2-7eb0bccb64a7bff87df762c0a68f0eb4d23510a1.tar.bz2
gentoo-2-7eb0bccb64a7bff87df762c0a68f0eb4d23510a1.zip
Use precompiled manpage wrt #327467 (set XMLTO to true). Fix license from GPL-2 to MIT. Respect CC.
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'x11-misc/alock/alock-94.ebuild')
-rw-r--r--x11-misc/alock/alock-94.ebuild34
1 files changed, 17 insertions, 17 deletions
diff --git a/x11-misc/alock/alock-94.ebuild b/x11-misc/alock/alock-94.ebuild
index 825b31d115d8..d91dfe8eb209 100644
--- a/x11-misc/alock/alock-94.ebuild
+++ b/x11-misc/alock/alock-94.ebuild
@@ -1,17 +1,16 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/x11-misc/alock/alock-94.ebuild,v 1.2 2010/06/05 10:50:59 hwoarang Exp $
+# $Header: /var/cvsroot/gentoo-x86/x11-misc/alock/alock-94.ebuild,v 1.3 2010/07/08 11:45:16 ssuominen Exp $
-EAPI="2"
-
-inherit eutils
+EAPI=2
+inherit eutils toolchain-funcs
DESCRIPTION="locks the local X display until a password is entered"
HOMEPAGE="http://code.google.com/p/alock/
http://darkshed.net/projects/alock"
SRC_URI="http://alock.googlecode.com/files/alock-svn-${PV}.tar.bz2"
-LICENSE="GPL-2"
+LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE="imlib pam"
@@ -23,38 +22,39 @@ DEPEND="x11-libs/libX11
x11-libs/libXcursor
imlib? ( media-libs/imlib2[X] )
pam? ( virtual/pam )"
-RDEPEND="${DEPEND}"
-S=${WORKDIR}/alock-svn-${PV}
+S=${WORKDIR}/${PN}-svn-${PV}
src_prepare() {
- # fix pointer declaration for amd64
epatch "${FILESDIR}"/implicit_pointer_conversion_fix_amd64.patch
}
src_configure() {
- econf --with-all \
+ tc-export CC
+
+ ./configure \
+ --prefix=/usr \
+ --with-all \
$(use_with pam) \
- $(use_with imlib imlib2) \
- || die "configure failed"
+ $(use_with imlib imlib2) || die
+}
+
+src_compile() {
+ emake XMLTO=true || die
}
src_install() {
dobin src/alock || die
doman alock.1 || die
- dodoc README.txt CHANGELOG.txt || die
+ dodoc {CHANGELOG,README,TODO}.txt || die
insinto /usr/share/alock/xcursors
doins contrib/xcursor-* || die
insinto /usr/share/alock/bitmaps
doins bitmaps/* || die
-}
-pkg_postinst() {
if ! use pam; then
- einfo "pam support disabled"
- einfo "In order to authenticate against /etc/passwd, "
- einfo "/usr/bin/alock will need to be SUID"
+ fperms 4755 /usr/bin/alock
fi
}