summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wendler <polynomial-c@gentoo.org>2021-05-04 15:36:40 +0200
committerLars Wendler <polynomial-c@gentoo.org>2021-05-04 15:36:40 +0200
commit7e4891d682041caf0e92e1a4b8c408f3ed0bceb8 (patch)
treee79d80152ff5218635f929cb03cdd9a6373a5e62 /x11-misc/xplanet/xplanet-1.3.1-r2.ebuild
parentx11-misc/xplanet: Revbump to fix freetype detection (diff)
downloadgentoo-7e4891d682041caf0e92e1a4b8c408f3ed0bceb8.tar.gz
gentoo-7e4891d682041caf0e92e1a4b8c408f3ed0bceb8.tar.bz2
gentoo-7e4891d682041caf0e92e1a4b8c408f3ed0bceb8.zip
x11-misc/xplanet: Really do the revbump this time
Bug: https://bugs.gentoo.org/788136 Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
Diffstat (limited to 'x11-misc/xplanet/xplanet-1.3.1-r2.ebuild')
-rw-r--r--x11-misc/xplanet/xplanet-1.3.1-r2.ebuild68
1 files changed, 68 insertions, 0 deletions
diff --git a/x11-misc/xplanet/xplanet-1.3.1-r2.ebuild b/x11-misc/xplanet/xplanet-1.3.1-r2.ebuild
new file mode 100644
index 00000000000..1eef6008ea9
--- /dev/null
+++ b/x11-misc/xplanet/xplanet-1.3.1-r2.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+inherit autotools flag-o-matic
+
+DESCRIPTION="Render images of the earth into the X root window"
+HOMEPAGE="http://xplanet.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha amd64 ~hppa ppc ppc64 ~sparc x86"
+IUSE="gif jpeg png tiff truetype X"
+
+RDEPEND="
+ gif? ( media-libs/giflib:= )
+ jpeg? ( virtual/jpeg:0 )
+ png? (
+ media-libs/libpng:0=
+ media-libs/netpbm
+ )
+ tiff? ( media-libs/tiff:0 )
+ truetype? (
+ media-libs/freetype:2
+ x11-libs/pango
+ )
+ X? (
+ x11-libs/libX11
+ x11-libs/libXScrnSaver
+ x11-libs/libXext
+ x11-libs/libXt
+ )
+"
+DEPEND="${RDEPEND}"
+BDEPEND="
+ truetype? ( virtual/pkgconfig )
+ X? ( x11-base/xorg-proto )
+"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-giflib.patch
+ "${FILESDIR}"/${P}-remove-null-comparison.patch
+ "${FILESDIR}"/${P}-freetype_pkgconfig.patch #788136
+)
+
+src_prepare() {
+ default
+ eautoreconf #788136
+}
+
+src_configure() {
+ # econf says 'checking pnm.h presence... no'
+ use png && append-cppflags -I"${EPREFIX}"/usr/include/netpbm
+
+ local myconf=(
+ --with-freetype$(usex truetype '' '=no')
+ --with-gif$(usex gif '' '=no')
+ --with-jpeg$(usex jpeg '' '=no')
+ --with-pango$(usex truetype '' '=no')
+ --with-png$(usex png '' '=no')
+ --with-pnm$(usex png '' '=no')
+ --with-tiff$(usex tiff '' '=no')
+ --with-x$(usex X '' '=no')
+ --with-xscreensaver$(usex X '' '=no')
+ )
+ econf --with-cspice=no "${myconf[@]}"
+}