diff options
author | V3n3RiX <venerix@koprulu.sector> | 2025-02-27 19:26:40 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2025-02-27 19:26:40 +0000 |
commit | 4418da21bd05d610a3450f4aa75481785ca372a0 (patch) | |
tree | 05975a5e68e88b64b58ed4f9c416e36cd4dbff4e /x11-libs/fox | |
parent | acfd7c956a7b45da7af1452ec12e0b2d5e6ac65b (diff) |
gentoo auto-resync : 27:02:2025 - 19:26:39
Diffstat (limited to 'x11-libs/fox')
-rw-r--r-- | x11-libs/fox/Manifest | 5 | ||||
-rw-r--r-- | x11-libs/fox/files/fox-1.7.85-fix-metaclass-header.patch | 17 | ||||
-rw-r--r-- | x11-libs/fox/files/fox-1.7.85-sanitize.patch | 31 | ||||
-rw-r--r-- | x11-libs/fox/files/fox-1.7.85-tools.patch | 27 | ||||
-rw-r--r-- | x11-libs/fox/fox-1.7.85.ebuild | 120 |
5 files changed, 200 insertions, 0 deletions
diff --git a/x11-libs/fox/Manifest b/x11-libs/fox/Manifest index 53d4a7534f56..536ab39d003a 100644 --- a/x11-libs/fox/Manifest +++ b/x11-libs/fox/Manifest @@ -1,10 +1,15 @@ AUX fox-1.7.67-no-truetype.patch 1424 BLAKE2B 5e43098934e319c64e16e990618c93418c423dc670c9352cf263fce98e317870772d9f7c1ec986ef29daa24f65bf2daf1d5cc443431487891369c2d91a7862b6 SHA512 903e75c6c51fa58036206ba044a7f1d9247999c0a8d722c79cb728f555a42acb1c217be575861b7773444315b628da4d465624b5dc6e40a4f5a6493ec0bc09d5 AUX fox-1.7.67-pthread_rwlock_prefer_writer_np-musl.patch 890 BLAKE2B 656deaecb94f1c2a550f37aa1007d97af6834374c41cab3b13fafcd87554b95acec0655963896830ead7979b474390dbaefd217b2c72c68c8c14a784d9eaf146 SHA512 3ccdf6ede09bccbf0941892a655c98f3e0de684d7ca721106c53ee5262cd25f2da8efb088bfda0f7cd25607e6b2006f7c9211d20b95a369b1fc58db4cd8fc20d AUX fox-1.7.84-pthread_rwlock_prefer_writer_np-musl.patch 937 BLAKE2B 2fa49b121834f040d613d54ceb3f3faddbe4cf48019db13872ef9e89d9479e5d21246d8fb70caae3386b6c8cda2da70274f34b68edf85722e24e61169553a6b3 SHA512 21e851be235682f6e5106990e998ea130452d0717ec86e7316bb3373ff01c968d31ed1e7f1d914c2c3f3131a8ed85a2b701c14d768e27be2792fc4e0eb582b04 +AUX fox-1.7.85-fix-metaclass-header.patch 319 BLAKE2B 5a8cd2d611a5f6e113544668cd922fba2c2ee5dc80029960aba38e8cc543932349687630b5fa3c46cbb2f3e3ad0c7fa976e963de24c4393cff4dc08a2d033946 SHA512 0657d9525b3bdbf3d954c5890f4a5ba10dfc49d2de03034ed6a73f6806527b4c8a0d39150663a878c17e25f530a4e4d41473be3a420babdbc9d38a019992496c +AUX fox-1.7.85-sanitize.patch 1004 BLAKE2B ed41f04fec530bd233b6cd6b731762d882a6f1c3e75de45e166589d32e4fbcc51fb75ea7ec2d1fbd674fc22f1af741e63018ed65f6578135a55e6aa39197727f SHA512 f63ce0f87b2a9a60feaf8ff5b8e83a6e976f4a5cc35c29d74480f48c3de6fa38f73bea0528180caeeaa85986b04fcf56fbaeabfb1b82e1093fc74a7e61c7fc50 +AUX fox-1.7.85-tools.patch 943 BLAKE2B 6e4410ba768e4cd6555821ea138ef9ea84247cf8ae2f38a949f303f9cd05d55710617a939deab1f8335d405a4ec384a46c89f4a7487d13b54589caf28fbaf2ee SHA512 5cfcb621a88e99fd5d9c677b4e97a7541dd115b0bd0080b8f00751a07d88f85286e56cc55b5d3c9d45781813c06c0cb6bf19fa0271d04e30b9a7592bc9fe3a2c 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 EBUILD fox-1.6.57-r4.ebuild 2777 BLAKE2B 0d4e4e4d3010ebd8039eebf6c0818328eeaf04ea2633dd22d05f49144caac0ead87a9570c06c0833940349b78fb45b64c0d907669867e809175cbc054b84a848 SHA512 1ee7125e378bc9ea964215a25bd0ac1d7ca2f91ab23ee2455d7a8a4fbdad61b418b3354ddf91d7ee614d9f657f678b7dd599b934248e1484c2e085f3cd4ae988 EBUILD fox-1.7.67-r3.ebuild 3655 BLAKE2B 4eec8cd4c5b4fe9a7da723fed8d50842cd68cf13d8b33ffe9b2ef048566fd2d4fcf73bd6b69e3af67d26f7c45105ac7fb2d4b71f2d8aad864b1b9e15b7afe194 SHA512 1187e83b4ee7a8d29ae89020015171b43e62ab0bf324e4ed1c8c0215dcfc9fbed373aa605ced058c72273e7faed64007c0a9aa2731694d5e3b533dc9d118e102 EBUILD fox-1.7.84.ebuild 2953 BLAKE2B b9adbfcdf47b455ec5b8a8f468a8833b61475ed6ef18c45af246ac82e1d8b383cdba56518ab152777d70ff06d62b51b082df765bc27b27622759003bf774b289 SHA512 5420a0a7094a8497d7e1169bbe0f18c1067522331746635efafd416d6269b78bc17fc14123c8e86c6a84706e5668dc102d8f2b339798606f54f329218a268741 +EBUILD fox-1.7.85.ebuild 2858 BLAKE2B d3d5abba6ee421720fa7b0ac625fa94dde635cdbe012ce3e39c76cdf9a33b693b8cbcc8d605809fa45866135242f6b7ec97a9aa8d481a082c938940403753a42 SHA512 9b3f7e833e9d6545178132627b626dc50cf6d647e2b4235f65fc90c0b2507e2a63b80229c7e0e39cd2036196127a418bd9a55fcb379be22279ce8e7dfda2d074 MISC metadata.xml 353 BLAKE2B e9db8b14c07f63f450153af626408d7007471113ba54acad5aa97aac5258d02fe6702db354cce45ceca20444756f5ceb0c46dbacb6fae28fb06320f24221cbbb SHA512 26adab0c5f6876716fa0c87398e9d4009d162d4d202d0455d987837617316aecf8096b10c2a99a5529f7b9d5a324f9aa386d11d0f22c574114acebd15e30fdaa diff --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 +} |