diff options
author | Daniel Campbell <zlg@gentoo.org> | 2017-01-02 05:18:17 -0800 |
---|---|---|
committer | Daniel Campbell <zlg@gentoo.org> | 2017-01-02 06:06:55 -0800 |
commit | 0e4f8f3d09b8bdc6aa10452eaff9d7d930a4767d (patch) | |
tree | cd1f6b7dd9a1882062a0a60ce2b5442815dcdfbe /x11-misc/alock/alock-1.0.0.ebuild | |
parent | media-sound/easytag: Move to ~sparc as this is probably not used by many of i... (diff) | |
download | gentoo-0e4f8f3d09b8bdc6aa10452eaff9d7d930a4767d.tar.gz gentoo-0e4f8f3d09b8bdc6aa10452eaff9d7d930a4767d.tar.bz2 gentoo-0e4f8f3d09b8bdc6aa10452eaff9d7d930a4767d.zip |
x11-misc/alock: version "bump"
Google Code has shut down and upstream supplied a proper version to
target.
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'x11-misc/alock/alock-1.0.0.ebuild')
-rw-r--r-- | x11-misc/alock/alock-1.0.0.ebuild | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/x11-misc/alock/alock-1.0.0.ebuild b/x11-misc/alock/alock-1.0.0.ebuild new file mode 100644 index 000000000000..b1d6201b7a8e --- /dev/null +++ b/x11-misc/alock/alock-1.0.0.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 +inherit eutils toolchain-funcs + +# we need this since there are no tagged releases yet +DESCRIPTION="locks the local X display until a password is entered" +HOMEPAGE="http://darkshed.net/projects/alock + https://github.com/mgumz/alock" +SRC_URI="https://github.com/mgumz/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="doc imlib pam" + +DEPEND="x11-libs/libX11 + x11-libs/libXext + x11-libs/libXpm + x11-libs/libXrender + x11-libs/libXcursor + imlib? ( media-libs/imlib2[X] ) + pam? ( virtual/pam ) + doc? ( app-text/asciidoc )" +RDEPEND="${DEPEND}" + +src_prepare() { + epatch "${FILESDIR}"/implicit_pointer_conversion_fix_amd64.patch + epatch "${FILESDIR}"/check-setuid.patch + epatch "${FILESDIR}"/tidy-printf.patch + epatch "${FILESDIR}"/fix-aliasing.patch + epatch "${FILESDIR}"/no-xf86misc.patch + eapply_user +} + +src_configure() { + tc-export CC + + econf \ + --prefix=/usr \ + --with-all \ + $(use_with pam) \ + $(use_with imlib imlib2) +} + +src_compile() { + # xmlto isn't required, so set to 'true' as dummy program + # alock.1 is suitable for a manpage + emake XMLTO=true +} + +src_install() { + dobin src/alock + if use doc; then + # We need to generate the manpage... + a2x -d manpage -f manpage ./"${PN}".txt || die "a2x conversion failed." + doman alock.1 + dodoc {CHANGELOG,README,TODO}.txt + fi + + insinto /usr/share/alock/xcursors + doins contrib/xcursor-* + + insinto /usr/share/alock/bitmaps + doins bitmaps/* + + if ! use pam; then + # Sets suid so alock can correctly work with shadow + fperms 4755 /usr/bin/alock + fi +} |