* [gentoo-commits] repo/gentoo:master commit in: x11-libs/fox/files/, x11-libs/fox/
@ 2019-12-16 21:39 Jason A. Donenfeld
0 siblings, 0 replies; 3+ messages in thread
From: Jason A. Donenfeld @ 2019-12-16 21:39 UTC (permalink / raw
To: gentoo-commits
commit: ed97a7c22e8bba9908edfd7b7a557ae7750571ec
Author: Jason A. Donenfeld <zx2c4 <AT> gentoo <DOT> org>
AuthorDate: Mon Dec 16 21:37:03 2019 +0000
Commit: Jason A. Donenfeld <zx2c4 <AT> gentoo <DOT> org>
CommitDate: Mon Dec 16 21:39:00 2019 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ed97a7c2
x11-libs/fox: fix USE=-truetype and use EAPI=7
We're not going to revbump it, because the code changes only affect code
that's compiled with USE=-truetype, which wouldn't compile at all
before.
While we're at it, bump to EAPI=7.
Package-Manager: Portage-2.3.82, Repoman-2.3.20
Signed-off-by: Jason A. Donenfeld <zx2c4 <AT> gentoo.org>
x11-libs/fox/files/fox-1.7.67-no-truetype.patch | 46 +++++++++++++++++++++++++
x11-libs/fox/fox-1.7.67.ebuild | 10 ++++--
2 files changed, 53 insertions(+), 3 deletions(-)
diff --git a/x11-libs/fox/files/fox-1.7.67-no-truetype.patch b/x11-libs/fox/files/fox-1.7.67-no-truetype.patch
new file mode 100644
index 00000000000..6f91d9746a1
--- /dev/null
+++ b/x11-libs/fox/files/fox-1.7.67-no-truetype.patch
@@ -0,0 +1,46 @@
+diff -ru fox-1.7.67/lib/FXFont.cpp /var/tmp/portage/x11-libs/fox-1.7.67/work/fox-1.7.67/lib/FXFont.cpp
+--- fox-1.7.67/lib/FXFont.cpp 2019-05-08 05:21:21.000000000 +0200
++++ /var/tmp/portage/x11-libs/fox-1.7.67/work/fox-1.7.67/lib/FXFont.cpp 2019-12-16 22:19:32.510138232 +0100
+@@ -829,26 +829,26 @@
+
+ // Weight
+ if(wantweight){
+- dweight=Math::iabs(weight-wantweight);
++ dweight=Math::iabs((FXint)(weight-wantweight));
+ }
+ else{
+- dweight=Math::iabs(weight-FXFont::Normal);
++ dweight=Math::iabs((FXint)(weight-FXFont::Normal));
+ }
+
+ // Slant
+ if(wantslant){
+- dslant=Math::iabs(slant-wantslant);
++ dslant=Math::iabs((FXint)(slant-wantslant));
+ }
+ else{
+- dslant=Math::iabs(slant-FXFont::Straight);
++ dslant=Math::iabs((FXint)(slant-FXFont::Straight));
+ }
+
+ // Set width
+ if(wantsetwidth){
+- dsetwidth=Math::iabs(setwidth-wantsetwidth);
++ dsetwidth=Math::iabs((FXint)(setwidth-wantsetwidth));
+ }
+ else{
+- dsetwidth=Math::iabs(setwidth-FXFont::NonExpanded);
++ dsetwidth=Math::iabs((FXint)(setwidth-FXFont::NonExpanded));
+ }
+
+ // Pitch
+@@ -900,7 +900,7 @@
+ // should be multiplied by (100/90).
+ else{
+ size=(yres*points)/res;
+- dsize=Math::iabs(size-wantsize);
++ dsize=Math::iabs((FXint)(size-wantsize));
+ }
+
+ FXTRACE((160,"%4d: dweight=%-3d dsize=%3d dslant=%d dsetwidth=%d dscalable=%d dpolymorph=%d xres=%-3d yres=%-3d xlfd=\"%s\"\n",f,dweight,dsize,dslant,dsetwidth,dscalable,dpolymorph,xres,yres,fontnames[f]));
+
diff --git a/x11-libs/fox/fox-1.7.67.ebuild b/x11-libs/fox/fox-1.7.67.ebuild
index 0be6c0ddb46..0f09d1a6053 100644
--- a/x11-libs/fox/fox-1.7.67.ebuild
+++ b/x11-libs/fox/fox-1.7.67.ebuild
@@ -1,9 +1,9 @@
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=5
+EAPI=7
-inherit autotools versionator
+inherit autotools
LICENSE="LGPL-2.1"
SLOT="1.7"
@@ -31,7 +31,11 @@ DESCRIPTION="C++ Toolkit for developing Graphical User Interfaces easily and eff
HOMEPAGE="http://www.fox-toolkit.org/"
SRC_URI="ftp://ftp.fox-toolkit.org/pub/${P}.tar.gz"
+PATCHES=( "${FILESDIR}"/"${PN}"-1.7.67-no-truetype.patch )
+
src_prepare() {
+ default
+
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
@@ -92,7 +96,7 @@ src_install() {
# 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" \
+ mv "${D}/usr/bin/fox-config" "${D}/usr/bin/fox-${SLOT}-config" \
|| die "failed to install fox-config"
fi
}
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: x11-libs/fox/files/, x11-libs/fox/
@ 2023-10-01 8:37 Sam James
0 siblings, 0 replies; 3+ messages in thread
From: Sam James @ 2023-10-01 8:37 UTC (permalink / raw
To: gentoo-commits
commit: b1fae4949dd95e2204fd19ee72ca7af8c1816959
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Oct 1 08:09:51 2023 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Oct 1 08:37:34 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b1fae494
x11-libs/fox: add 1.7.84
Bug: https://bugs.gentoo.org/864412
Closes: https://bugs.gentoo.org/832299
Signed-off-by: Sam James <sam <AT> gentoo.org>
x11-libs/fox/Manifest | 1 +
...7.84-pthread_rwlock_prefer_writer_np-musl.patch | 20 ++++
x11-libs/fox/fox-1.7.84.ebuild | 117 +++++++++++++++++++++
3 files changed, 138 insertions(+)
diff --git a/x11-libs/fox/Manifest b/x11-libs/fox/Manifest
index ce1493d8b837..bfb8c275d25d 100644
--- a/x11-libs/fox/Manifest
+++ b/x11-libs/fox/Manifest
@@ -1,2 +1,3 @@
DIST fox-1.6.57.tar.gz 4284018 BLAKE2B 3efbc6188225f9444fbd347359e8b4041a08fe654acb99c48e4966e501a2f72a44863f2e9b60ae810a259951f89cfc27b9a8b6341e029627066712e0dbf20e40 SHA512 e7b91054a9ea674818803415284cb61572935d22466e446cb37ef68344e2684e8acd567f7c8a6912f939dcbcc37455119ad6a01ac30513f460d0b3937b7e6087
DIST fox-1.7.67.tar.gz 5689421 BLAKE2B 60f2d8e887a41f1e234cd31c1bd2702bcedae0f1b47cb7b9832c317e34a9b517cb603033d28e5ed66c4b97c85deaf3caa8dd40a508eaf715d63772e6ef0020b0 SHA512 a45db7ea9453e2afe0ff61ed6608925e94f9202dc1fbee5e2b88a5a1c16310019cb4611090f8234ad6ebc46a6519a36085683c4553d47bc9c21b8ef0c13ab540
+DIST fox-1.7.84.tar.gz 5879987 BLAKE2B 803a698eb5d976a04dd30b03a3c65f840d09e173292b8448dc02905b37ea352d0fe71b4a35f806f7ee2a8b6e6436b0c1dc9185ac3a17ecda3fb63a1b583e7348 SHA512 5590f16272a0630cb49e74e0f591e65886dd81ba1b0121d403fa3689ca8b23a727c75b645b417eb87e67fd0ece465b493146c8bb51d117a6559bb19b1b2b4297
diff --git a/x11-libs/fox/files/fox-1.7.84-pthread_rwlock_prefer_writer_np-musl.patch b/x11-libs/fox/files/fox-1.7.84-pthread_rwlock_prefer_writer_np-musl.patch
new file mode 100644
index 000000000000..233107e68e1d
--- /dev/null
+++ b/x11-libs/fox/files/fox-1.7.84-pthread_rwlock_prefer_writer_np-musl.patch
@@ -0,0 +1,20 @@
+https://bugs.gentoo.org/898866
+From: Brahmajit Das <brahmajit.xyz@gmail.com>
+Date: Sat, 17 Jun 2023 15:32:10 +0000
+Subject: [PATCH 1/1] Fix building against musl C library
+
+PTHREAD_RWLOCK_PREFER_WRITER_NP isn't available in musl libc/non-glibc
+systems. Additional check of __GLIBC__ being defined is needed.
+
+Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com>
+--- a/lib/FXReadWriteLock.cpp
++++ b/lib/FXReadWriteLock.cpp
+@@ -62,7 +62,7 @@ FXReadWriteLock::FXReadWriteLock(){
+ InitializeCriticalSection(((RWLOCK*)data)->mutex);
+ InitializeCriticalSection(((RWLOCK*)data)->access);
+ ((RWLOCK*)data)->readers=0;
+-#elif (_XOPEN_SOURCE >= 500) || (_POSIX_C_SOURCE >= 200809L)
++#elif (_XOPEN_SOURCE >= 500) || (_POSIX_C_SOURCE >= 200809L) && defined(__GLIBC__)
+ // If this fails on your machine, determine what value
+ // of sizeof(pthread_rwlock_t) is supposed to be on your
+ // machine and mail it to: jeroen@fox-toolkit.net!!
diff --git a/x11-libs/fox/fox-1.7.84.ebuild b/x11-libs/fox/fox-1.7.84.ebuild
new file mode 100644
index 000000000000..e83ac01f1fc0
--- /dev/null
+++ b/x11-libs/fox/fox-1.7.84.ebuild
@@ -0,0 +1,117 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools flag-o-matic
+
+DESCRIPTION="C++ Toolkit for developing Graphical User Interfaces easily and effectively"
+HOMEPAGE="http://www.fox-toolkit.org/"
+SRC_URI="ftp://www.fox-toolkit.org/pub/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="1.7"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
+IUSE="+bzip2 +jpeg +opengl +png tiff +truetype +zlib debug doc profile tools"
+
+RDEPEND="
+ x11-libs/fox-wrapper
+ x11-libs/libXcursor
+ x11-libs/libXrandr
+ bzip2? ( app-arch/bzip2 )
+ jpeg? ( media-libs/libjpeg-turbo:= )
+ opengl? ( virtual/glu virtual/opengl )
+ png? ( media-libs/libpng:= )
+ tiff? ( media-libs/tiff:= )
+ truetype? (
+ media-libs/freetype:2
+ x11-libs/libXft
+ )
+ zlib? ( sys-libs/zlib )
+"
+DEPEND="
+ ${RDEPEND}
+ x11-base/xorg-proto
+ x11-libs/libXt
+"
+BDEPEND="doc? ( app-doc/doxygen )"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.7.84-pthread_rwlock_prefer_writer_np-musl.patch
+)
+
+src_prepare() {
+ default
+
+ sed -i -e "s:windows::" Makefile.am || die
+
+ if ! use tools; then
+ local d
+ for d in adie calculator pathfinder shutterbug; do
+ sed -i -e "s:${d}::" Makefile.am || die
+ done
+ fi
+
+ # 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() {
+ use debug || append-cppflags -DNDEBUG
+
+ # Not using --enable-release because of the options it sets like no SSP
+ econf \
+ $(use_enable debug) \
+ $(use_enable bzip2 bz2lib) \
+ $(use_enable jpeg) \
+ $(use_with opengl) \
+ $(use_enable png) \
+ $(use_enable tiff) \
+ $(use_with truetype xft) \
+ $(use_enable zlib) \
+ $(use_with profile profiling)
+}
+
+src_compile() {
+ emake
+ use doc && emake -C doc docs
+}
+
+src_install() {
+ emake install \
+ DESTDIR="${D}" \
+ htmldir="${EPREFIX}"/usr/share/doc/${PF}/html \
+ artdir="${EPREFIX}"/usr/share/doc/${PF}/html/art \
+ screenshotsdir="${EPREFIX}"/usr/share/doc/${PF}/html/screenshots
+
+ local CP="${ED}"/usr/bin/ControlPanel
+ if [[ -f ${CP} ]]; then
+ mv "${CP}" "${ED}"/usr/bin/fox-ControlPanel-${SLOT} || \
+ die "Failed to install ControlPanel"
+ fi
+
+ dodoc ADDITIONS AUTHORS LICENSE_ADDENDUM README TRACING
+
+ if use doc; then
+ # install class reference docs if USE=doc
+ docinto html
+ dodoc -r doc/ref
+ else
+ # remove documentation if USE=-doc
+ rm -rf "${ED}"/usr/share/doc/${PF}/html || die
+ fi
+
+ # slot fox-config
+ if [[ -f ${ED}/usr/bin/fox-config ]] ; then
+ mv "${ED}"/usr/bin/fox-config "${ED}"/usr/bin/fox-${SLOT}-config \
+ || die "failed to install fox-config"
+ fi
+
+ # no static archives
+ find "${D}" -name '*.la' -delete || die
+}
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: x11-libs/fox/files/, x11-libs/fox/
@ 2025-02-27 6:05 Sam James
0 siblings, 0 replies; 3+ messages in thread
From: Sam James @ 2025-02-27 6:05 UTC (permalink / raw
To: gentoo-commits
commit: 6013a4b9a36c42e351d5b99ee6969bc13acd79ea
Author: Nicolas PARLANT <nicolas.parlant <AT> parhuet <DOT> fr>
AuthorDate: Wed Feb 26 00:47:29 2025 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Feb 27 06:02:57 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6013a4b9
x11-libs/fox: add 1.7.85, add deps
deps:
* add pkg from x11-libs/ to prevent auto-rdep
could be an useflag per pkg but forced here, as xcursor and xrandr
* fontconfig is required by xft option (truetype useflag)
* rm libpng as support is now built-in
patches instead of sed
Signed-off-by: Nicolas PARLANT <nicolas.parlant <AT> parhuet.fr>
Closes: https://github.com/gentoo/gentoo/pull/40761
Signed-off-by: Sam James <sam <AT> gentoo.org>
x11-libs/fox/Manifest | 1 +
| 17 +++
x11-libs/fox/files/fox-1.7.85-sanitize.patch | 31 ++++++
x11-libs/fox/files/fox-1.7.85-tools.patch | 27 +++++
x11-libs/fox/fox-1.7.85.ebuild | 120 +++++++++++++++++++++
5 files changed, 196 insertions(+)
diff --git a/x11-libs/fox/Manifest b/x11-libs/fox/Manifest
index bfb8c275d25d..01059dc6e3dd 100644
--- a/x11-libs/fox/Manifest
+++ b/x11-libs/fox/Manifest
@@ -1,3 +1,4 @@
DIST fox-1.6.57.tar.gz 4284018 BLAKE2B 3efbc6188225f9444fbd347359e8b4041a08fe654acb99c48e4966e501a2f72a44863f2e9b60ae810a259951f89cfc27b9a8b6341e029627066712e0dbf20e40 SHA512 e7b91054a9ea674818803415284cb61572935d22466e446cb37ef68344e2684e8acd567f7c8a6912f939dcbcc37455119ad6a01ac30513f460d0b3937b7e6087
DIST fox-1.7.67.tar.gz 5689421 BLAKE2B 60f2d8e887a41f1e234cd31c1bd2702bcedae0f1b47cb7b9832c317e34a9b517cb603033d28e5ed66c4b97c85deaf3caa8dd40a508eaf715d63772e6ef0020b0 SHA512 a45db7ea9453e2afe0ff61ed6608925e94f9202dc1fbee5e2b88a5a1c16310019cb4611090f8234ad6ebc46a6519a36085683c4553d47bc9c21b8ef0c13ab540
DIST fox-1.7.84.tar.gz 5879987 BLAKE2B 803a698eb5d976a04dd30b03a3c65f840d09e173292b8448dc02905b37ea352d0fe71b4a35f806f7ee2a8b6e6436b0c1dc9185ac3a17ecda3fb63a1b583e7348 SHA512 5590f16272a0630cb49e74e0f591e65886dd81ba1b0121d403fa3689ca8b23a727c75b645b417eb87e67fd0ece465b493146c8bb51d117a6559bb19b1b2b4297
+DIST fox-1.7.85.tar.gz 5912948 BLAKE2B ba9b224212efd91e4643e4f97bfd571802c48bf379239a4f580f820e1f6d8c8d55c321febfd42b4dfc7b366715e893365cd198c4cb9c22c5fb8c525b16b1f888 SHA512 7a67d564c69ddac1a9dec62837943ec7aabd951c72715ac12300f728f0fad3365e39cdbf7fe1ab31e0ae8cf11381d62eaeb3edb64d1773d4cd2279db4fd280d8
--git a/x11-libs/fox/files/fox-1.7.85-fix-metaclass-header.patch b/x11-libs/fox/files/fox-1.7.85-fix-metaclass-header.patch
new file mode 100644
index 000000000000..fbd57bc409f7
--- /dev/null
+++ b/x11-libs/fox/files/fox-1.7.85-fix-metaclass-header.patch
@@ -0,0 +1,17 @@
+fix from snapshot
+prevent:
+> /usr/include/fox-1.7/FXObject.h:54:28: error: ‘FXSelector’ in namespace ‘FX’ does not name a type
+
+--- a/include/FXObject.h
++++ b/include/FXObject.h
+@@ -25,6 +25,10 @@
+ #include "FXCallback.h"
+ #endif
+
++#ifndef FXMETACLASS_H
++#include "FXMetaClass.h"
++#endif
++
+ namespace FX {
+
+
diff --git a/x11-libs/fox/files/fox-1.7.85-sanitize.patch b/x11-libs/fox/files/fox-1.7.85-sanitize.patch
new file mode 100644
index 000000000000..3d8d707509d5
--- /dev/null
+++ b/x11-libs/fox/files/fox-1.7.85-sanitize.patch
@@ -0,0 +1,31 @@
+--- a/configure.ac
++++ b/configure.ac
+@@ -65,9 +67,6 @@
+ AC_SUBST(LT_REVISION)
+ AC_SUBST(LT_AGE)
+
+-# Prevents setting flags.
+-CXXFLAGS=""
+-
+ # More secret source
+ AC_GNU_SOURCE
+
+@@ -145,7 +144,6 @@
+ CXXFLAGS="${CXXFLAGS} -O2 -DNDEBUG"
+ if test "${GXX}" = "yes" ; then
+ CXXFLAGS="${CXXFLAGS} -ffast-math -fstrict-overflow -fstrict-aliasing -finline-functions -fomit-frame-pointer -fcf-protection=none -fno-stack-protector"
+- LDFLAGS="-s ${LDFLAGS}"
+ fi
+ fi
+
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -3,7 +3,7 @@
+ # For non-gcc compilers, change the options to "no-dependencies"
+ AUTOMAKE_OPTIONS = foreign dist-zip
+
+-SUBDIRS = utils include lib chart doc tests shutterbug adie pathfinder calculator controlpanel glviewer windows
++SUBDIRS = utils include lib chart doc tests shutterbug adie pathfinder calculator controlpanel glviewer
+ EXTRA_DIST = ADDITIONS AUTHORS INSTALL LICENSE LICENSE_ADDENDUM TRACING README fox.spec fox-config index.html aclocal.m4
+
+ bin_SCRIPTS = fox-config
diff --git a/x11-libs/fox/files/fox-1.7.85-tools.patch b/x11-libs/fox/files/fox-1.7.85-tools.patch
new file mode 100644
index 000000000000..bd28a51ed328
--- /dev/null
+++ b/x11-libs/fox/files/fox-1.7.85-tools.patch
@@ -0,0 +1,27 @@
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -3,7 +3,10 @@
+ # For non-gcc compilers, change the options to "no-dependencies"
+ AUTOMAKE_OPTIONS = foreign dist-zip
+
+-SUBDIRS = utils include lib chart doc tests shutterbug adie pathfinder calculator controlpanel glviewer
++if COND_TOOLS
++ INC_TOOLS = adie calculator pathfinder shutterbug
++endif
++SUBDIRS = utils include lib chart doc tests controlpanel glviewer $(INC_TOOLS)
+ EXTRA_DIST = ADDITIONS AUTHORS INSTALL LICENSE LICENSE_ADDENDUM TRACING README fox.spec fox-config index.html aclocal.m4
+
+ bin_SCRIPTS = fox-config
+--- a/configure.ac
++++ b/configure.ac
+@@ -51,6 +51,10 @@
+ LT_AGE=`expr $FOX_INTERFACE_VERSION - $FOX_BINARY_VERSION`
+ LT_INIT([win32-dll])
+
++AC_ARG_WITH(tools,[ --with-tools choices are yes, no])
++AC_MSG_RESULT([$with_tools])
++AM_CONDITIONAL(COND_TOOLS, test "x$with_tools" != "xno")
++
+ # Check win32 compile
+ case "$host_os" in
+ *mingw32*) OS_WINDOWS=1 ;;
diff --git a/x11-libs/fox/fox-1.7.85.ebuild b/x11-libs/fox/fox-1.7.85.ebuild
new file mode 100644
index 000000000000..03b6463e40c0
--- /dev/null
+++ b/x11-libs/fox/fox-1.7.85.ebuild
@@ -0,0 +1,120 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools flag-o-matic
+
+DESCRIPTION="C++ Toolkit for developing Graphical User Interfaces easily and effectively"
+HOMEPAGE="http://www.fox-toolkit.org/"
+SRC_URI="ftp://www.fox-toolkit.org/pub/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="1.7"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86"
+IUSE="+bzip2 +jpeg +opengl tiff +truetype +zlib debug doc profile tools"
+
+COMMON_DEPEND="
+ x11-libs/libICE
+ x11-libs/libSM
+ x11-libs/libX11
+ x11-libs/libXcursor
+ x11-libs/libXext
+ x11-libs/libXfixes
+ x11-libs/libXi
+ x11-libs/libXrandr
+ x11-libs/libXrender
+ bzip2? ( app-arch/bzip2 )
+ jpeg? ( media-libs/libjpeg-turbo:= )
+ opengl? ( virtual/glu virtual/opengl )
+ tiff? ( media-libs/tiff:= )
+ truetype? (
+ media-libs/fontconfig
+ media-libs/freetype:2
+ x11-libs/libXft
+ )
+ zlib? ( sys-libs/zlib )
+"
+RDEPEND="
+ ${COMMON_DEPEND}
+ x11-libs/fox-wrapper
+"
+DEPEND="
+ ${COMMON_DEPEND}
+ x11-base/xorg-proto
+ x11-libs/libXt
+"
+BDEPEND="doc? ( app-text/doxygen )"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.7.84-pthread_rwlock_prefer_writer_np-musl.patch
+ "${FILESDIR}"/${PN}-1.7.85-sanitize.patch
+ "${FILESDIR}"/${PN}-1.7.85-tools.patch
+ # fix from snapshot-1.7.86. to remove in the next release.
+ "${FILESDIR}"/${PN}-1.7.85-fix-metaclass-header.patch
+)
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_configure() {
+ # -Werror=strict-aliasing (bug #864412, bug #940648)
+ # Do not trust it for LTO either.
+ append-flags -fno-strict-aliasing
+ filter-lto
+
+ use debug || append-cppflags -DNDEBUG
+
+ # Not using --enable-release because of the options it sets like no SSP
+ econf \
+ $(use_enable debug) \
+ $(use_enable bzip2 bz2lib) \
+ $(use_enable jpeg) \
+ $(use_with opengl) \
+ $(use_enable tiff) \
+ $(use_with truetype xft) \
+ $(use_enable zlib) \
+ $(use_with profile profiling) \
+ $(use_with tools)
+}
+
+src_compile() {
+ emake
+ use doc && emake -C doc docs
+}
+
+src_install() {
+ emake install \
+ DESTDIR="${D}" \
+ htmldir="${EPREFIX}"/usr/share/doc/${PF}/html \
+ artdir="${EPREFIX}"/usr/share/doc/${PF}/html/art \
+ screenshotsdir="${EPREFIX}"/usr/share/doc/${PF}/html/screenshots
+
+ local CP="${ED}"/usr/bin/ControlPanel
+ if [[ -f ${CP} ]]; then
+ mv "${CP}" "${ED}"/usr/bin/fox-ControlPanel-${SLOT} || \
+ die "Failed to install ControlPanel"
+ fi
+
+ dodoc ADDITIONS AUTHORS LICENSE_ADDENDUM README TRACING
+
+ if use doc; then
+ # install class reference docs if USE=doc
+ docinto html
+ dodoc -r doc/ref
+ else
+ # remove documentation if USE=-doc
+ rm -rf "${ED}"/usr/share/doc/${PF}/html || die
+ fi
+
+ # slot fox-config
+ if [[ -f ${ED}/usr/bin/fox-config ]] ; then
+ mv "${ED}"/usr/bin/fox-config "${ED}"/usr/bin/fox-${SLOT}-config \
+ || die "failed to install fox-config"
+ fi
+
+ # no static archives
+ find "${D}" -name '*.la' -delete || die
+}
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-02-27 6:05 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-27 6:05 [gentoo-commits] repo/gentoo:master commit in: x11-libs/fox/files/, x11-libs/fox/ Sam James
-- strict thread matches above, loose matches on Subject: below --
2023-10-01 8:37 Sam James
2019-12-16 21:39 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