diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-05-04 22:28:33 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-05-04 22:28:33 +0100 |
commit | a978c074e4272bb901fbe4a10de0a7b2af574f17 (patch) | |
tree | 8c764c1cc0576389ce22abd317bceba71ea5732d /x11-misc/xplanet/xplanet-1.3.1-r2.ebuild | |
parent | 40aaaa64e86ba6710bbeb31c4615a6ce80e75e11 (diff) |
gentoo resync : 04.05.2021
Diffstat (limited to 'x11-misc/xplanet/xplanet-1.3.1-r2.ebuild')
-rw-r--r-- | x11-misc/xplanet/xplanet-1.3.1-r2.ebuild | 72 |
1 files changed, 72 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 000000000000..ac79390deb72 --- /dev/null +++ b/x11-misc/xplanet/xplanet-1.3.1-r2.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit autotools flag-o-matic toolchain-funcs + +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[@]}" +} + +src_compile() { + emake AR=$(tc-getAR) +} |