forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
x11-misc/xlockmore: Version 5.59_alpha4
Package-Manager: Portage-2.3.75, Repoman-2.3.17 Signed-off-by: Jeroen Roovers <[email protected]>
- Loading branch information
Jeroen Roovers
committed
Sep 8, 2019
1 parent
bef0bb4
commit c7842b6
Showing
2 changed files
with
116 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
# Copyright 1999-2019 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=7 | ||
inherit autotools flag-o-matic pam | ||
|
||
DESCRIPTION="Just another screensaver application for X" | ||
HOMEPAGE="http://www.sillycycle.com/xlockmore.html" | ||
SRC_URI=" | ||
http://www.sillycycle.com/xlock/${P/_alpha/ALPHA}.tar.xz | ||
https://dev.gentoo.org/~jer/ax_pthread.m4.xz | ||
" | ||
|
||
LICENSE="BSD GPL-2" | ||
SLOT="0" | ||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86" | ||
IUSE="crypt debug gtk imagemagick motif nas opengl pam truetype xinerama xlockrc vtlock" | ||
|
||
REQUIRED_USE=" | ||
|| ( crypt pam ) | ||
pam? ( !xlockrc ) | ||
xlockrc? ( !pam ) | ||
" | ||
RDEPEND=" | ||
gtk? ( x11-libs/gtk+:2 ) | ||
imagemagick? ( media-gfx/imagemagick:= ) | ||
motif? ( >=x11-libs/motif-2.3:0 ) | ||
nas? ( media-libs/nas ) | ||
opengl? ( | ||
virtual/opengl | ||
virtual/glu | ||
truetype? ( >=media-libs/ftgl-2.1.3_rc5 ) | ||
) | ||
pam? ( virtual/pam ) | ||
truetype? ( media-libs/freetype:2 ) | ||
x11-libs/libX11 | ||
x11-libs/libXext | ||
x11-libs/libXmu | ||
x11-libs/libXpm | ||
x11-libs/libXt | ||
xinerama? ( x11-libs/libXinerama ) | ||
" | ||
DEPEND=" | ||
${RDEPEND} | ||
virtual/pkgconfig | ||
x11-base/xorg-proto | ||
" | ||
|
||
PATCHES=( | ||
"${FILESDIR}"/${PN}-5.46-freetype261.patch | ||
"${FILESDIR}"/${PN}-5.47-CXX.patch | ||
"${FILESDIR}"/${PN}-5.47-strip.patch | ||
) | ||
S=${WORKDIR}/${P/_alpha/ALPHA} | ||
|
||
src_unpack() { | ||
unpack ${P/_alpha/ALPHA}.tar.xz | ||
xz -cd ${DISTDIR}/ax_pthread.m4.xz > ${S}/ax_pthread.m4 || die | ||
} | ||
|
||
src_prepare() { | ||
default | ||
eautoreconf | ||
} | ||
|
||
src_configure() { | ||
local myconf=() | ||
|
||
if use opengl && use truetype; then | ||
myconf=( --with-ftgl ) | ||
append-flags -DFTGL213 | ||
else | ||
myconf=( --without-ftgl ) | ||
fi | ||
|
||
myconf+=( | ||
$(use_enable pam) | ||
$(use_enable xlockrc) | ||
$(use_enable vtlock) | ||
$(use_with crypt) | ||
$(use_with debug editres) | ||
$(use_with gtk gtk2) | ||
$(use_with imagemagick magick) | ||
$(use_with motif) | ||
$(use_with nas) | ||
$(use_with opengl mesa) | ||
$(use_with opengl) | ||
$(use_with truetype freetype) | ||
$(use_with truetype ttf) | ||
$(use_with xinerama) | ||
--disable-mb | ||
--enable-appdefaultdir=/usr/share/X11/app-defaults | ||
--enable-syslog | ||
--enable-vtlock | ||
--without-esound | ||
--without-gtk | ||
) | ||
econf "${myconf[@]}" | ||
} | ||
|
||
src_install() { | ||
local DOCS=( README docs/{3d.howto,cell_automata,HACKERS.GUIDE,Purify,Revisions,TODO} ) | ||
default | ||
|
||
pamd_mimic_system xlock auth | ||
|
||
if use pam; then | ||
fperms 755 /usr/bin/xlock | ||
else | ||
fperms 4755 /usr/bin/xlock | ||
fi | ||
|
||
docinto html | ||
dodoc docs/xlock.html | ||
} |