summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2016-07-24 12:42:59 +0200
committerJeroen Roovers <jer@gentoo.org>2016-07-24 12:42:59 +0200
commit2f01d6fe297f8e13b2441b15f74a08e5d60c15b8 (patch)
tree4bcc206e9c22e491a70fefa3e5398117ecdda238 /x11-misc/xautolock
parentapp-admin/sudo: Stable for HPPA PPC64 (bug #587794). (diff)
downloadgentoo-2f01d6fe297f8e13b2441b15f74a08e5d60c15b8.tar.gz
gentoo-2f01d6fe297f8e13b2441b15f74a08e5d60c15b8.tar.bz2
gentoo-2f01d6fe297f8e13b2441b15f74a08e5d60c15b8.zip
x11-misc/xautolock: Add Debian patches.
Package-Manager: portage-2.3.0
Diffstat (limited to 'x11-misc/xautolock')
-rw-r--r--x11-misc/xautolock/Manifest1
-rw-r--r--x11-misc/xautolock/xautolock-2.2_p5.ebuild60
2 files changed, 61 insertions, 0 deletions
diff --git a/x11-misc/xautolock/Manifest b/x11-misc/xautolock/Manifest
index 44b81eade069..34598053509e 100644
--- a/x11-misc/xautolock/Manifest
+++ b/x11-misc/xautolock/Manifest
@@ -1 +1,2 @@
DIST xautolock-2.2.tgz 35288 SHA256 11f0275175634e6db756e96f5713ec91b8b1c41f8663df54e8a5d27dc71c4da2 SHA512 5f9dcc25cda706610e77a74235c4b421ca3a833d154b1a269057f0774579e1c6ec36fe0e5be5fadd6942ce8c1640a760f891397586b162e6024b524635153d04 WHIRLPOOL c10262350dd39d9e69d491ee2164911ccb6077dd7f8be08981256e4fcb3d7059133fb172360d8f33b12d89e6576f4c4aa6b9d3ea4cdff427e4d5a0dab6ba757c
+DIST xautolock_2.2-5.debian.tar.xz 5444 SHA256 6a7ad00b0b01062927f10d995338836f535742e82092343cadc6ac6cc4644167 SHA512 aa5a5dc61d029803172ce99bfa9cacdb29ae44f1b45293947dfbde11c17f19c736071578863982aa4cf59f2a22de3e0463e6e17c3d768a4054387f2591b7238c WHIRLPOOL 485ed69545c7f116276120acefb206e8d2f0d2fecd4346a492f8f2c27b897543bab9e288df1e904f663d24f07e1fa43cffa155025f73027799169d383e40d156
diff --git a/x11-misc/xautolock/xautolock-2.2_p5.ebuild b/x11-misc/xautolock/xautolock-2.2_p5.ebuild
new file mode 100644
index 000000000000..248cb226ac3c
--- /dev/null
+++ b/x11-misc/xautolock/xautolock-2.2_p5.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+inherit toolchain-funcs
+
+DESCRIPTION="An automatic X screen-locker/screen-saver"
+HOMEPAGE="http://www.ibiblio.org/pub/Linux/X11/screensavers/"
+SRC_URI="
+ ${HOMEPAGE}/${P/_p*/}.tgz
+ mirror://debian/pool/main/x/${PN}/${PN}_${PV/_p*/}-${PV/*_p/}.debian.tar.xz
+"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+
+RDEPEND="
+ || (
+ x11-misc/alock
+ x11-misc/i3lock
+ x11-misc/slim
+ x11-misc/slock
+ x11-misc/xlockmore
+ x11-misc/xtrlock
+ )
+ x11-libs/libXScrnSaver
+"
+DEPEND="
+ ${RDEPEND}
+ app-text/rman
+ x11-misc/imake
+ x11-proto/scrnsaverproto
+"
+
+S=${WORKDIR}/${P/_p*}
+
+PATCHES=(
+ "${WORKDIR}"/debian/patches/10-fix-memory-corruption.patch
+ "${WORKDIR}"/debian/patches/11-fix-no-dpms.patch
+ "${WORKDIR}"/debian/patches/12-fix-manpage.patch
+ "${WORKDIR}"/debian/patches/13-fix-hppa-build.patch
+)
+
+src_configure() {
+ xmkmf || die
+}
+
+src_compile() {
+ emake \
+ CC="$(tc-getCC)" \
+ CDEBUGFLAGS="${CFLAGS}" \
+ EXTRA_LDOPTIONS="${LDFLAGS}"
+}
+
+src_install () {
+ dobin xautolock
+ newman xautolock.man xautolock.1
+ dodoc Changelog Readme Todo
+}