summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2015-08-22 06:36:01 +0200
committerJeroen Roovers <jer@gentoo.org>2015-08-22 06:36:01 +0200
commit82e736b5af629afa68f0c490d8d930a31dcf2e94 (patch)
tree827a69eaaf61d4b40d7fad18cd583fcf36bf7ee9 /x11-misc
parentnet-ftp/lftp: Version bump. (diff)
downloadgentoo-82e736b5af629afa68f0c490d8d930a31dcf2e94.tar.gz
gentoo-82e736b5af629afa68f0c490d8d930a31dcf2e94.tar.bz2
gentoo-82e736b5af629afa68f0c490d8d930a31dcf2e94.zip
Fix building against =x11-libs/libdockapp-0.7.0 (bug #558364 by Toralf Förster).
Package-Manager: portage-2.2.20.1
Diffstat (limited to 'x11-misc')
-rw-r--r--x11-misc/xscreensaver-app/files/xscreensaver-app-2.3-configure.ac21
-rw-r--r--x11-misc/xscreensaver-app/xscreensaver-app-2.3-r3.ebuild46
2 files changed, 67 insertions, 0 deletions
diff --git a/x11-misc/xscreensaver-app/files/xscreensaver-app-2.3-configure.ac b/x11-misc/xscreensaver-app/files/xscreensaver-app-2.3-configure.ac
new file mode 100644
index 00000000000..af8b327bb90
--- /dev/null
+++ b/x11-misc/xscreensaver-app/files/xscreensaver-app-2.3-configure.ac
@@ -0,0 +1,21 @@
+AC_INIT(xscreensaver.app.c)
+
+AM_INIT_AUTOMAKE(XScreenSaver.App,2.3)
+
+AC_PROG_CC
+
+AC_PROG_INSTALL
+
+AC_PATH_X
+
+AC_CHECK_LIB(dockapp, DAProcessActionRects, , exit 1)
+
+PKG_CHECK_MODULES(LIBX11, x11,[LIBS="$LIBS $LIBX11_LIBS";CFLAGS="$CFLAGS $LIBX11_CFLAGS"],[exit 1])
+
+AC_CHECK_HEADER(dockapp.h, have_dockapp_h=yes, [], [])
+
+if test "$have_dockapp_h"x != "yes"x; then
+AC_CHECK_HEADER(libdockapp/dockapp.h, [CFLAGS="$CFLAGS -I/usr/include/libdockapp"], exit 1, [])
+fi
+
+AC_OUTPUT(Makefile)
diff --git a/x11-misc/xscreensaver-app/xscreensaver-app-2.3-r3.ebuild b/x11-misc/xscreensaver-app/xscreensaver-app-2.3-r3.ebuild
new file mode 100644
index 00000000000..c8ebbb9b0b7
--- /dev/null
+++ b/x11-misc/xscreensaver-app/xscreensaver-app-2.3-r3.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit autotools toolchain-funcs
+
+MY_PN=${PN/-a/.A}
+MY_PN=${MY_PN/xs/XS}
+MY_PN=${MY_PN/s/S}
+
+DESCRIPTION="XScreenSaver dockapp for the Window Maker window manager"
+HOMEPAGE="http://xscreensaverapp.sourceforge.net/"
+SRC_URI="mirror://sourceforge/project/xscreensaverapp/${MY_PN}/${PV}/${MY_PN}-${PV}.tar.gz"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~x86"
+
+CDEPEND="
+ x11-libs/libdockapp
+ x11-libs/libX11
+"
+DEPEND="
+ ${CDEPEND}
+ x11-proto/xproto
+ virtual/pkgconfig
+"
+RDEPEND="
+ ${CDEPEND}
+ x11-misc/xscreensaver
+"
+
+S=${WORKDIR}/${MY_PN}-${PV}
+
+src_prepare() {
+ rm configure.in || die
+ cp "${FILESDIR}"/${PN}-2.3-configure.ac configure.ac || die
+
+ eautoreconf
+}
+
+src_install() {
+ dobin ${MY_PN}
+ dodoc README NEWS ChangeLog TODO AUTHORS
+}