Gentoo Archives: gentoo-commits

From: Daniel Campbell <zlg@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-misc/alock/
Date: Mon, 02 Jan 2017 14:07:19
Message-Id: 1483366015.0e4f8f3d09b8bdc6aa10452eaff9d7d930a4767d.zlg@gentoo
1 commit: 0e4f8f3d09b8bdc6aa10452eaff9d7d930a4767d
2 Author: Daniel Campbell <zlg <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jan 2 13:18:17 2017 +0000
4 Commit: Daniel Campbell <zlg <AT> gentoo <DOT> org>
5 CommitDate: Mon Jan 2 14:06:55 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0e4f8f3d
7
8 x11-misc/alock: version "bump"
9
10 Google Code has shut down and upstream supplied a proper version to
11 target.
12
13 Package-Manager: Portage-2.3.3, Repoman-2.3.1
14
15 x11-misc/alock/Manifest | 1 +
16 x11-misc/alock/alock-1.0.0.ebuild | 73 +++++++++++++++++++++++++++++++++++++++
17 2 files changed, 74 insertions(+)
18
19 diff --git a/x11-misc/alock/Manifest b/x11-misc/alock/Manifest
20 index 873c2cd..36e419e 100644
21 --- a/x11-misc/alock/Manifest
22 +++ b/x11-misc/alock/Manifest
23 @@ -1,2 +1,3 @@
24 +DIST alock-1.0.0.tar.gz 71497 SHA256 011a75e612c12947b0428168386e0b4e71610e4c05330239a07ae8c74f6505aa SHA512 7f2515410919ef1324019cd8d218650f54537f9fddf1d74bebd255c7572eff9433ded92f2d1f4ee5f352151dd15f4a7f53f7b639f82d4e6f936f831262d508a5 WHIRLPOOL f6931fdbf3b16fe50625dd4c95d6c056ab3b733d416c842ea7db9499ecef8ea39b1f4c6254be0f6d4ba594830bb1979ec5f107d43e7f076dfbbbb3997d661752
25 DIST alock-94.zip 93058 SHA256 7f283b775902b5b3bdebd498e3d295408a0e603c5e1ff4863806d3844e3c70ce SHA512 3f321ebbb5526f6d1f66c7e80d2e0126ca15cb614b8ffd2ebbb824bff8d87a1eb4d8db1b33edb294398c9919d99e9983a2db7555a1330e3cb5307be369ef0e50 WHIRLPOOL 555ee700dbe1b6c376344ee1fe72bfc75c3d135c501a91f42f46e3904fd52eebcdb0f6fc2705abc7e5ed9c748d4a9003d58b419a41ffd9e070965e47ef98109a
26 DIST alock-svn-94.tar.bz2 68140 SHA256 37938b56588e0e9bdfdf52097bccd000f992ea725c87cd8c8b3ea4df847e8f26 SHA512 91166bf6ca4fa715754048b9ac39367f691dbaef7ac39cbe32a92541a00cb522de9070b35bb70646f53cb7f32f7a8028455a5c7bcb0729c6948a089304a26a64 WHIRLPOOL 5c28a8ca3da7b4d31c9fa4994f1ddda3a11a73ea7719d96238b41651bf80a4be99bd7b5f159264ed0495ebc63d20e220769ffe205afb523b49c2c7bcbfadd932
27
28 diff --git a/x11-misc/alock/alock-1.0.0.ebuild b/x11-misc/alock/alock-1.0.0.ebuild
29 new file mode 100644
30 index 00000000..b1d6201
31 --- /dev/null
32 +++ b/x11-misc/alock/alock-1.0.0.ebuild
33 @@ -0,0 +1,73 @@
34 +# Copyright 1999-2017 Gentoo Foundation
35 +# Distributed under the terms of the GNU General Public License v2
36 +# $Id$
37 +
38 +EAPI=6
39 +inherit eutils toolchain-funcs
40 +
41 +# we need this since there are no tagged releases yet
42 +DESCRIPTION="locks the local X display until a password is entered"
43 +HOMEPAGE="http://darkshed.net/projects/alock
44 + https://github.com/mgumz/alock"
45 +SRC_URI="https://github.com/mgumz/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
46 +
47 +LICENSE="MIT"
48 +SLOT="0"
49 +KEYWORDS="~amd64 ~ppc ~x86"
50 +IUSE="doc imlib pam"
51 +
52 +DEPEND="x11-libs/libX11
53 + x11-libs/libXext
54 + x11-libs/libXpm
55 + x11-libs/libXrender
56 + x11-libs/libXcursor
57 + imlib? ( media-libs/imlib2[X] )
58 + pam? ( virtual/pam )
59 + doc? ( app-text/asciidoc )"
60 +RDEPEND="${DEPEND}"
61 +
62 +src_prepare() {
63 + epatch "${FILESDIR}"/implicit_pointer_conversion_fix_amd64.patch
64 + epatch "${FILESDIR}"/check-setuid.patch
65 + epatch "${FILESDIR}"/tidy-printf.patch
66 + epatch "${FILESDIR}"/fix-aliasing.patch
67 + epatch "${FILESDIR}"/no-xf86misc.patch
68 + eapply_user
69 +}
70 +
71 +src_configure() {
72 + tc-export CC
73 +
74 + econf \
75 + --prefix=/usr \
76 + --with-all \
77 + $(use_with pam) \
78 + $(use_with imlib imlib2)
79 +}
80 +
81 +src_compile() {
82 + # xmlto isn't required, so set to 'true' as dummy program
83 + # alock.1 is suitable for a manpage
84 + emake XMLTO=true
85 +}
86 +
87 +src_install() {
88 + dobin src/alock
89 + if use doc; then
90 + # We need to generate the manpage...
91 + a2x -d manpage -f manpage ./"${PN}".txt || die "a2x conversion failed."
92 + doman alock.1
93 + dodoc {CHANGELOG,README,TODO}.txt
94 + fi
95 +
96 + insinto /usr/share/alock/xcursors
97 + doins contrib/xcursor-*
98 +
99 + insinto /usr/share/alock/bitmaps
100 + doins bitmaps/*
101 +
102 + if ! use pam; then
103 + # Sets suid so alock can correctly work with shadow
104 + fperms 4755 /usr/bin/alock
105 + fi
106 +}