* [gentoo-commits] repo/gentoo:master commit in: x11-libs/fox/, profiles/
@ 2019-12-16 17:20 Jason A. Donenfeld
0 siblings, 0 replies; only message in thread
From: Jason A. Donenfeld @ 2019-12-16 17:20 UTC (permalink / raw
To: gentoo-commits
commit: 6bb301b0b8ba5a10eec7ccc5042f0e7745e41770
Author: Jason A. Donenfeld <zx2c4 <AT> gentoo <DOT> org>
AuthorDate: Mon Dec 16 17:06:27 2019 +0000
Commit: Jason A. Donenfeld <zx2c4 <AT> gentoo <DOT> org>
CommitDate: Mon Dec 16 17:17:53 2019 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6bb301b0
x11-libs/fox: prepare for deletion of old cruft
Package-Manager: Portage-2.3.82, Repoman-2.3.20
Signed-off-by: Jason A. Donenfeld <zx2c4 <AT> gentoo.org>
profiles/package.mask | 17 +++--------
x11-libs/fox/fox-1.7.67.ebuild | 67 +++++++++++++++++++++++++++++++++---------
x11-libs/fox/metadata.xml | 5 +++-
3 files changed, 61 insertions(+), 28 deletions(-)
diff --git a/profiles/package.mask b/profiles/package.mask
index 8fcd6f0c5fc..ec341f2a7e0 100644
--- a/profiles/package.mask
+++ b/profiles/package.mask
@@ -32,24 +32,15 @@
#--- END OF EXAMPLES ---
-# Michał Górny <mgorny@gentoo.org> (2019-12-16)
-# All of FOX Toolkit packages are unmaintained. The library was last
-# bumped in Jan 2016, and is pending bump since. Other packages are
-# even more behind. Including media-sound/gogglesmm as the only revdep.
-# Removal in 30 days. Bug #703088.
+# Jason A. Donenfeld <zx2c4@gentoo.org> (2019-12-16)
+# Simplify FOX packages. Nobody uses the demo apps or the "stable" branch.
+# Removal in 30 days. Bug #703088. Bug #703084.
app-editors/adie
dev-util/reswrap
-media-sound/gogglesmm
sci-calculators/calculator
-x11-libs/fox
+x11-libs/fox:1.6
x11-misc/pathfinder
x11-misc/shutterbug
-
-# Michał Górny <mgorny@gentoo.org> (2019-12-16)
-# Old slot of unmaintained x11-libs/fox. Last touched in 2015, pending
-# bump since. x11-misc/xfe is the only revdep.
-# Removal in 30 days. Bug #703084.
-x11-libs/fox:1.6
x11-misc/xfe
# Michał Górny <mgorny@gentoo.org> (2019-12-15)
diff --git a/x11-libs/fox/fox-1.7.67.ebuild b/x11-libs/fox/fox-1.7.67.ebuild
index 9a65bf97146..0be6c0ddb46 100644
--- a/x11-libs/fox/fox-1.7.67.ebuild
+++ b/x11-libs/fox/fox-1.7.67.ebuild
@@ -3,18 +3,16 @@
EAPI=5
-inherit fox
+inherit autotools versionator
LICENSE="LGPL-2.1"
SLOT="1.7"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
-IUSE="+bzip2 +jpeg +opengl +png tiff +truetype +zlib"
+IUSE="+bzip2 +jpeg +opengl +png tiff +truetype +zlib debug doc profile"
-# newish autoconf needed for working mmap check
RDEPEND="x11-libs/libXrandr
x11-libs/libXcursor
x11-libs/fox-wrapper
- >=sys-devel/autoconf-2.67
bzip2? ( app-arch/bzip2 )
jpeg? ( virtual/jpeg:= )
opengl? ( virtual/glu virtual/opengl )
@@ -22,38 +20,79 @@ RDEPEND="x11-libs/libXrandr
tiff? ( media-libs/tiff:0= )
truetype? ( media-libs/freetype:2
x11-libs/libXft )
- zlib? ( sys-libs/zlib )"
+ zlib? ( sys-libs/zlib )
+ doc? ( app-doc/doxygen )
+"
DEPEND="${RDEPEND}
x11-base/xorg-proto
x11-libs/libXt"
+DESCRIPTION="C++ Toolkit for developing Graphical User Interfaces easily and effectively"
+HOMEPAGE="http://www.fox-toolkit.org/"
+SRC_URI="ftp://ftp.fox-toolkit.org/pub/${P}.tar.gz"
+
src_prepare() {
- fox_src_prepare
sed -i '/#define REXDEBUG 1/d' lib/FXRex.cpp || die "Unable to remove spurious debug line."
+ local d
+ for d in windows adie calculator pathfinder shutterbug; do
+ sed -i -e "s:${d}::" Makefile.am || die "Unable to remove $d."
+ done
+
+ # Respect system CXXFLAGS
+ sed -i -e 's:CXXFLAGS=""::' configure.ac || die "Unable to force cxxflags."
+
+ # don't strip binaries
+ sed -i -e '/LDFLAGS="-s ${LDFLAGS}"/d' configure.ac || die "Unable to prevent stripping."
+
+ eautoreconf
}
src_configure() {
- FOXCONF="$(use_enable bzip2 bz2lib) \
+ econf \
+ $(use debug && echo --enable-debug || echo --enable-release) \
+ $(use_enable bzip2 bz2lib) \
$(use_enable jpeg) \
$(use_with opengl) \
$(use_enable png) \
$(use_enable tiff) \
$(use_with truetype xft) \
- $(use_enable zlib)" fox_src_configure
+ $(use_enable zlib) \
+ $(use_with profile profiling)
+}
+
+src_compile() {
+ emake || die "compile error"
+ use doc && emake -C "${S}"/doc docs
}
src_install() {
- fox_src_install
+ emake install \
+ DESTDIR="${D}" \
+ htmldir=/usr/share/doc/${PF}/html \
+ artdir=/usr/share/doc/${PF}/html/art \
+ screenshotsdir=/usr/share/doc/${PF}/html/screenshots
+
CP="${ED}/usr/bin/ControlPanel"
if [[ -f ${CP} ]] ; then
mv "${CP}" "${ED}/usr/bin/fox-ControlPanel-${SLOT}" || \
die "Failed to install ControlPanel"
fi
-}
-pkg_postinst() {
- fox_pkg_postinst
+ for doc in ADDITIONS AUTHORS LICENSE_ADDENDUM README TRACING ; do
+ [ -f $doc ] && dodoc $doc
+ done
+
+ # remove documentation if USE=-doc
+ use doc || rm -fr "${D}/usr/share/doc/${PF}/html"
- einfo "ControlPanel has been installed to 'fox-ControlPanel-${SLOT}' to avoid conflicts"
- einfo "with other packages."
+ # install class reference docs if USE=doc
+ if use doc && [[ -z ${FOX_COMPONENT} ]] ; then
+ dohtml -r "${S}/doc/ref"
+ fi
+
+ # slot fox-config
+ if [[ -f ${D}/usr/bin/fox-config ]] ; then
+ mv "${D}/usr/bin/fox-config" "${D}/usr/bin/fox-$(get_version_component_range 1-2 ${PV})-config" \
+ || die "failed to install fox-config"
+ fi
}
diff --git a/x11-libs/fox/metadata.xml b/x11-libs/fox/metadata.xml
index 7a38bb90096..915f0022706 100644
--- a/x11-libs/fox/metadata.xml
+++ b/x11-libs/fox/metadata.xml
@@ -1,5 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
- <!-- maintainer-needed -->
+ <maintainer type="person">
+ <email>zx2c4@gentoo.org</email>
+ <name>Jason A. Donenfeld</name>
+ </maintainer>
</pkgmetadata>
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2019-12-16 17:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-12-16 17:20 [gentoo-commits] repo/gentoo:master commit in: x11-libs/fox/, profiles/ Jason A. Donenfeld
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox