From 75abd8d3830449158bdd27f9c4701bcbadc55080 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 3 Apr 2024 02:14:04 +0100 Subject: gentoo auto-resync : 03:04:2024 - 02:14:03 --- x11-wm/Manifest.gz | Bin 9156 -> 9151 bytes x11-wm/fvwm3/Manifest | 7 +- ...m3-1.0.8-implicit-function-decl-configure.patch | 18 -- .../files/fvwm3-1.1.0-fix-go-detection-v2.patch | 50 +++++ .../fvwm3/files/fvwm3-1.1.0-fix-go-detection.patch | 50 ----- x11-wm/fvwm3/fvwm3-1.1.0-r1.ebuild | 203 ++++++++++++++++++++ x11-wm/fvwm3/fvwm3-1.1.0.ebuild | 206 --------------------- x11-wm/fvwm3/fvwm3-9999.ebuild | 3 - 8 files changed, 256 insertions(+), 281 deletions(-) delete mode 100644 x11-wm/fvwm3/files/fvwm3-1.0.8-implicit-function-decl-configure.patch create mode 100644 x11-wm/fvwm3/files/fvwm3-1.1.0-fix-go-detection-v2.patch delete mode 100644 x11-wm/fvwm3/files/fvwm3-1.1.0-fix-go-detection.patch create mode 100644 x11-wm/fvwm3/fvwm3-1.1.0-r1.ebuild delete mode 100644 x11-wm/fvwm3/fvwm3-1.1.0.ebuild (limited to 'x11-wm') diff --git a/x11-wm/Manifest.gz b/x11-wm/Manifest.gz index 48f33c361352..61806ce5d587 100644 Binary files a/x11-wm/Manifest.gz and b/x11-wm/Manifest.gz differ diff --git a/x11-wm/fvwm3/Manifest b/x11-wm/fvwm3/Manifest index c3884b4c66b9..454dba7ea747 100644 --- a/x11-wm/fvwm3/Manifest +++ b/x11-wm/fvwm3/Manifest @@ -1,10 +1,9 @@ -AUX fvwm3-1.0.8-implicit-function-decl-configure.patch 471 BLAKE2B eb0eb437a35497f0d7584bc66c5969189fa2f75b48b7acf730656c0ecfce78f456a9771094431dc7e06e8b0d3d65fde473581660822406315a7491fd8288c21b SHA512 8164aa4fd4307a962d6030f44667789523a383e1eb83aae15aace762e6594351f00e368d2474cd86e39a637825c2696e773c9952bb65de934a624e726ec61069 -AUX fvwm3-1.1.0-fix-go-detection.patch 1821 BLAKE2B d67caf926a62c5473a43975c0272a6a8459b2484f4e42b02b7a9f66dd09da3e67252b353b935a498386086469d6e4840c48c8deb0bb6350801d5070e70760d8b SHA512 e22ed6d49ebd3c35fce43e99c49ab33d1a377df27799f516e4b28bdbf86920d6a02624b3042c68af9ca187f3a5bee9a55136e02c45478e8671c33ecd3ec2b1cb +AUX fvwm3-1.1.0-fix-go-detection-v2.patch 1807 BLAKE2B e34c3110b0fe64a392a8c2a9369780e55bee4f043f6c403e8e0b9f216e657580125a7b1fe0481017fc41de89866e099ead38f4779bec5737f30fe52c63ae6dab SHA512 cb2716f0ec085c75cceb73c0f6d3ba838c162162c0c3e6ae83bcf93c099d7f15d6d29bad59bd5522e24f1f4305d36f70fe91150536d239d3e1a1abb8fc9b6a33 DIST fvwm3-1.0.9-docs.tar.xz 234884 BLAKE2B f52da9eb2486f7a212ead77ccc190c57076e1d3c73a3997c3a94edcf60dbc72ec5d410a8df1d621ff18b346741b1c94b3f87170db68c3067caa3295782a9bb61 SHA512 e6c33b09b7bac32bd61f1bd2c0216e2c99fef3f0b51b52b229093c25a437828e4bece382284d0c1f0bbbaf5b7459f2c391dfc1d2fa4ba80be22f09094e976b03 DIST fvwm3-1.0.9.tar.gz 4525552 BLAKE2B cb58181adb42f5b8d491c6413277eb1f4a5d89637d9c6bb323223925c719d808e84ed0f72a1d0ffc822ddb8295ebf2bb89c2351ebd591916b50ebc69728e59fa SHA512 de71d74b76da8e0cf1560d51ef916857e3f825b272d786d9b6b93aef9a82c399f580b9b941a47aff1f327b097d12e1ce05860924e792206e4150ff19a5c39ee3 DIST fvwm3-1.1.0-docs.tar.xz 230964 BLAKE2B f431011a63a8d190e01e34301e74fd40750deb51c947b055474888379b7364910351c923ac637968948a094b89f49d8be5758429a85cd66107b8696b526b0004 SHA512 629794d0aef9ef2d9ce9a8e1ff3bc63fe2ef30f9f593938e2892e4e04bd960f51d2a90aaf5c95328495bccea6b1dbfd6fdeb76f18bb9a8bc6eb2649359023df8 DIST fvwm3-1.1.0.tar.gz 4527424 BLAKE2B ee9a3f190ae7fa1f1dd703e17b0e12f04da63212cade30facdbc8339ded7f598de143d18f17dde39d3af8e24ff2b34855ad3e5b2b6c5ffe466072a7353895cd8 SHA512 47eea05cbdecf4da3313b9183fa938544b451b9f133d7a68062feb222c3c1af3873402f80b60485d603afe8cd23a03f3e86a503fc1f2070e1ad2e6e64d012341 EBUILD fvwm3-1.0.9-r1.ebuild 4808 BLAKE2B 522e96330ee3730704e2544ab34a71816b5616e8565790cabacbb3a0ccfbebcf09d7b0e74acd289b1d092c9e828e58d995d6986257d32db55b58310b6aea866e SHA512 9a10669c760d02ac45339259c8d4c836dcb3cfcfaf368363838ba16bf415afc83bb20db326999d4a45c237771b0c617691d3639292517475b45961fe37174380 -EBUILD fvwm3-1.1.0.ebuild 4871 BLAKE2B bd06eab9b8273bc7ab36b2998acd4593fa7d48965ab28b79ba8d897f109a5992602e8d0626955e8484ebbcf51b68a65db5fff8188f8f094a793643a196262291 SHA512 00f01f6317af4c9724e71761af42892a9618c9a9e8dbc8b9d3dfb1c1bf9e8b67d22578962bdac2920cc0446626d2aa80db05417cbcb8c1647507375c06e604fd -EBUILD fvwm3-9999.ebuild 4831 BLAKE2B 56523fea4709d1472435de0020c8b79e6ff40c48e98077f03732cb6d0457bab3abbfc2d70efa8ddf6b7c7983796202852d62b32d5779eeb99e9dc0e1ce8edcc4 SHA512 59f40c3451d667e547767904ccbd9da4723fc61f20f7789904d083f4068f042489ff80d482202362550e3c8ccb800d54c4ff9590a2dc389ca0cab2f68998f084 +EBUILD fvwm3-1.1.0-r1.ebuild 4759 BLAKE2B 562730695d29ac3f1d587ad37803719614107e8332ac96b8faab71e20186d961bd39155057875346aca7bf2c2588db6c104f2b4c84fda52752ef75c85f933176 SHA512 8740a4d2bc9a67d9f1b190f846ab07ce5fc0fb210348450bd9f120ae224d79fb6a1a9e7bb04dc6787dcb25779c760902f90416f9afa7355b01e77668eb01e0c7 +EBUILD fvwm3-9999.ebuild 4716 BLAKE2B f7a1be00bfeb6e7fc6ed8e2dea7d55a25ba9a57998dea8e2b6a95477412b301c1f9d236609217b74f822807b834e808e80aef7777e5081d4a16144182f3c2ecf SHA512 ac53c1eb13bf03a68a0a9f2103cda7928a01939798c553d0eed8050966da8286c4abab617cee31eda8248698d7affc7383de86c7ac209e42ffe91eded5a18317 MISC metadata.xml 1012 BLAKE2B 5c5d08f16521594e1425ca8efbe5162c72ce6aff0557c0c79f1e2717dfc77ba855f90c493b45ff361d2e75f00b17e549b6853ee660c77c57cdeadce1df223f32 SHA512 a53bdde33366823f867bcff8b6c90e3cae6e0808945278fd02928502fd38df9d699fa4ace2fe66c1524e74d256242202a2b3139deb1331b67ac72f2fd0e9608f diff --git a/x11-wm/fvwm3/files/fvwm3-1.0.8-implicit-function-decl-configure.patch b/x11-wm/fvwm3/files/fvwm3-1.0.8-implicit-function-decl-configure.patch deleted file mode 100644 index 374afddcd6e4..000000000000 --- a/x11-wm/fvwm3/files/fvwm3-1.0.8-implicit-function-decl-configure.patch +++ /dev/null @@ -1,18 +0,0 @@ -https://github.com/fvwmorg/fvwm3/pull/914 -From: Matt Jolly -Date: Tue, 17 Oct 2023 16:01:33 +1000 -Subject: [PATCH] Fix implicit function declaration in configure - -Missing unistd.h include for `close` and `unlink` ---- a/acinclude.m4 -+++ b/acinclude.m4 -@@ -996,6 +996,7 @@ AC_DEFUN([AM_SAFETY_CHECK_MKSTEMP],[ - #include - #include - #include -+#include - int main(void) - { - char template[128]; --- -2.42.0 diff --git a/x11-wm/fvwm3/files/fvwm3-1.1.0-fix-go-detection-v2.patch b/x11-wm/fvwm3/files/fvwm3-1.1.0-fix-go-detection-v2.patch new file mode 100644 index 000000000000..5c17193728cc --- /dev/null +++ b/x11-wm/fvwm3/files/fvwm3-1.1.0-fix-go-detection-v2.patch @@ -0,0 +1,50 @@ +From 9be90a96c537b4a743774b0be9ffc8ca5c6498da Mon Sep 17 00:00:00 2001 +From: Matt Jolly +Date: Tue, 2 Apr 2024 20:47:38 +1000 +Subject: [PATCH] Use AX_COMPARE_VERSION macro for golang version checks + +The previous approach fragile, required manual updates, +and results in unexpected outcomes when the user has updated +golang. + +Reported-by: Denny Rivetti +--- a/configure.ac ++++ b/configure.ac +@@ -80,23 +80,13 @@ AC_ARG_ENABLE(golang, + + if test ! x"$with_golang" = xno; then + AC_CHECK_PROGS(GO, go) +- if test -n "$GO" ; then +- GOVERSIONOPTION=version +- go_version=$($GO $GOVERSIONOPTION | sed -e 's/go version go//' | \ +- sed -e 's/ .*$//') +- AC_MSG_CHECKING([whether go version is >= 1.14.x ($go_version)]) +- case "$go_version" in +- 1.14*|1.15*|1.16*|1.17*|1.18*|1.19*|1.20*|1.21*|1.22*|1.23*) +- AC_MSG_RESULT([yes - version is: $go_version]) +- with_golang="yes" +- GO= +- ;; +- *) +- AC_MSG_RESULT([no - version is: $go_version]) +- with_golang="no" +- problem_golang=": version of go ($go_version) <= 1.14.x" +- ;; +- esac ++ if test -n "$GO"; then ++ GOVERSIONOPTION=version ++ go_version=$($GO $GOVERSIONOPTION | sed -e 's/go version go//' | sed -e 's/ .*$//') ++ AX_COMPARE_VERSION([$go_version], [ge], ["1.14.0"], ++ [with_golang="yes"; GO=], ++ [with_golang="no"; ++ AC_MSG_ERROR([Go version ($go_version) is lower than the minimum required version ($REQUIRED_GO_VERSION)])]) + fi + fi + AM_CONDITIONAL([FVWM_BUILD_GOLANG], [test x"$with_golang" = xyes]) +@@ -1514,4 +1504,4 @@ Fvwm3 Configuration: + Build man pages? $with_mandoc$problem_mandoc + Build html man pages? $with_htmldoc$problem_htmldoc + +-" +\ No newline at end of file ++" diff --git a/x11-wm/fvwm3/files/fvwm3-1.1.0-fix-go-detection.patch b/x11-wm/fvwm3/files/fvwm3-1.1.0-fix-go-detection.patch deleted file mode 100644 index 6c38f51ce932..000000000000 --- a/x11-wm/fvwm3/files/fvwm3-1.1.0-fix-go-detection.patch +++ /dev/null @@ -1,50 +0,0 @@ -From 9be90a96c537b4a743774b0be9ffc8ca5c6498da Mon Sep 17 00:00:00 2001 -From: Matt Jolly -Date: Tue, 2 Apr 2024 20:47:38 +1000 -Subject: [PATCH] Use AX_COMPARE_VERSION macro for golang version checks - -The previous approach fragile, required manual updates, -and results in unexpected outcomes when the user has updated -golang. - -Reported-by: Denny Rivetti ---- a/configure.ac -+++ b/configure.ac -@@ -80,23 +80,13 @@ AC_ARG_ENABLE(golang, - - if test ! x"$with_golang" = xno; then - AC_CHECK_PROGS(GO, go) -- if test -n "$GO" ; then -- GOVERSIONOPTION=version -- go_version=$($GO $GOVERSIONOPTION | sed -e 's/go version go//' | \ -- sed -e 's/ .*$//') -- AC_MSG_CHECKING([whether go version is >= 1.14.x ($go_version)]) -- case "$go_version" in -- 1.14*|1.15*|1.16*|1.17*|1.18*|1.19*|1.20*|1.21*|1.22*|1.23*) -- AC_MSG_RESULT([yes - version is: $go_version]) -- with_golang="yes" -- GO= -- ;; -- *) -- AC_MSG_RESULT([no - version is: $go_version]) -- with_golang="no" -- problem_golang=": version of go ($go_version) <= 1.14.x" -- ;; -- esac -+ if test -n "$GO"; then -+ GOVERSIONOPTION=version -+ go_version=$($GO $GOVERSIONOPTION | sed -e 's/go version go//' | sed -e 's/ .*$//') -+ AX_COMPARE_VERSION([$go_version], [ge], ["1.14.0"], -+ [with_golang="yes ($go_version)"; GO=], -+ [with_golang="no"; -+ AC_MSG_ERROR([Go version ($go_version) is lower than the minimum required version ($REQUIRED_GO_VERSION)])]) - fi - fi - AM_CONDITIONAL([FVWM_BUILD_GOLANG], [test x"$with_golang" = xyes]) -@@ -1514,4 +1504,4 @@ Fvwm3 Configuration: - Build man pages? $with_mandoc$problem_mandoc - Build html man pages? $with_htmldoc$problem_htmldoc - --" -\ No newline at end of file -+" diff --git a/x11-wm/fvwm3/fvwm3-1.1.0-r1.ebuild b/x11-wm/fvwm3/fvwm3-1.1.0-r1.ebuild new file mode 100644 index 000000000000..9fe8d41f042d --- /dev/null +++ b/x11-wm/fvwm3/fvwm3-1.1.0-r1.ebuild @@ -0,0 +1,203 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +# Doc generation requires pulls in asciidoc/ruby, we'll prebuild docs +# for release ebuilds. +# Scripting for this is in sam-gentoo-scripts. +: ${FVWM3_DOCS_PREBUILT:=1} + +PYTHON_COMPAT=( python3_{10..12} ) +GO_OPTIONAL=1 +inherit autotools desktop flag-o-matic go-module python-single-r1 toolchain-funcs + +DESCRIPTION="A multiple large virtual desktop window manager derived from fvwm" +HOMEPAGE="https://www.fvwm.org/" + +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/fvwmorg/fvwm3.git" + EGIT_BRANCH="main" +else + SRC_URI="https://github.com/fvwmorg/fvwm3/releases/download/${PV}/${P}.tar.gz" + if [[ ${FVWM3_DOCS_PREBUILT} == 1 ]]; then + SRC_URI+=" https://deps.gentoo.zip/x11-wm/fvwm3/${P}-docs.tar.xz" + fi + KEYWORDS="~amd64 ~riscv" +fi + +LICENSE="GPL-2+ FVWM + go? ( Apache-2.0 BSD MIT )" +SLOT="0" +IUSE="bidi debug +go netpbm nls perl readline stroke svg tk lock" +REQUIRED_USE=" + ${PYTHON_REQUIRED_USE}" + +DOCS=( NEWS ) + +if [[ ${PV} == 9999 ]]; then + DOCS+=( + dev-docs/COMMANDS + dev-docs/DEVELOPERS.md + dev-docs/INSTALL.md + dev-docs/PARSING.md + dev-docs/TODO.md + dev-docs/NEW-COMMANDS.md + ) +fi + +BDEPEND=" + virtual/pkgconfig + app-arch/unzip + go? ( >=dev-lang/go-1.14 ) +" + +if [[ ${FVWM3_DOCS_PREBUILT} == 0 ]]; then + BDEPEND+=" + dev-libs/libxslt + dev-ruby/asciidoctor + " +fi + +RDEPEND="${PYTHON_DEPS} + ${COMMON_DEPEND} + !x11-wm/fvwm + dev-lang/perl + dev-libs/glib:2 + dev-libs/libevent:= + media-libs/fontconfig + media-libs/libpng:= + sys-libs/zlib + x11-libs/libICE + x11-libs/libSM + x11-libs/libX11 + x11-libs/libXau + x11-libs/libxcb + x11-libs/libXcursor + x11-libs/libXdmcp + x11-libs/libXext + x11-libs/libXfixes + x11-libs/libXft + x11-libs/libXpm + x11-libs/libXrandr + x11-libs/libXrender + bidi? ( dev-libs/fribidi ) + lock? ( x11-misc/xlockmore ) + netpbm? ( media-libs/netpbm ) + perl? ( tk? ( + dev-lang/tk + dev-perl/Tk + >=dev-perl/X11-Protocol-0.56 + ) + ) + readline? ( + sys-libs/ncurses:= + sys-libs/readline:= + ) + stroke? ( dev-libs/libstroke ) + svg? ( + gnome-base/librsvg:2 + x11-libs/cairo + )" + +DEPEND="${COMMON_DEPEND} + x11-base/xorg-proto" + +PATCHES=( + "${FILESDIR}"/fvwm3-1.1.0-fix-go-detection-v2.patch +) + +src_prepare() { + default + use go && ( sed -e 's/GOFLAGS=-ldflags="-s -w"/GOFLAGS=/' \ + -i bin/FvwmPrompt/Makefile.am || die ) + + eautoreconf +} + +src_configure() { + # Recommended by upstream for release. Doesn't really matter for live ebuilds. + append-flags -fno-strict-aliasing + + # Signed chars are required. + for arch in arm arm64 ppc ppc64; do + use $arch && append-flags -fsigned-chars + done + + local myconf=( + --with-imagepath=/usr/include/X11/bitmaps:/usr/include/X11/pixmaps:/usr/share/icons/fvwm + --enable-package-subdirs + $(use_enable bidi) + $(use_enable go golang) + $(use_enable nls) + $(use_enable nls iconv) + $(use_enable perl perllib) + $(use_with readline readline-library) + $(use_enable svg rsvg) + --enable-png + ) + + if [[ ${FVWM3_DOCS_PREBUILT} == 0 ]]; then + myconf+=( + --enable-mandoc + --enable-htmldoc + ) + else + # Probably not required, but let's be safe + myconf+=( + --disable-mandoc + --disable-htmldoc + ) + fi + + use readline && myconf+=( --without-termcap-library ) + + econf "${myconf[@]}" +} + +src_compile() { + PREFIX="${EPREFIX}/usr" emake AR="$(tc-getAR)" +} + +src_install() { + # Since we're manually handling docs installation, let's do that first + # and then install the rest of the files via emake + local HTML_DOCS + if [[ ${FVWM3_DOCS_PREBUILT} == 1 ]] ; then + doman "${WORKDIR}"/${P}-docs/man/**/*.[0-8] + HTML_DOCS="${WORKDIR}"/${P}-docs/html/* + else + HTML_DOCS="${S}"/doc/*.html + doman "${S}"/doc/*.[0-8] + fi + + einstalldocs + + emake DESTDIR="${ED}" prefix="/usr" exec_prefix="/usr" datarootdir="/usr/share" install + + exeinto /etc/X11/Sessions + newexe - ${PN} <<-EOF + #!/bin/sh + ${PN} + EOF + + python_scriptinto "/usr/bin" + python_doscript "${ED}/usr/bin/FvwmCommand" "${ED}/usr/bin/fvwm-menu-desktop" + + make_session_desktop fvwm3 /usr/bin/fvwm3 + +} + +pkg_postinst() { + if use go; then + ewarn "FvwmPrompt has been installed, it provides the functionality of both FvwmCommand and FvwmConsole." + ewarn "For compatibility with the existing fvwm2 configurations, the ebuild will install a FvwmCommand wrapper." + ewarn "If you need FvwmConsole, install ${PN} with USE=\"-go\";" + ewarn "however FvwmPrompt and FvwmCommand will not be installed." + else + ewarn "FvwmConsole has been installed, but FvwmCommand and FvwmPrompt are no longer included in this ebuild." + ewarn "If you need FvwmPrompt or FvwmCommand, install ${PN} with USE=\"go\"." + ewarn "In that case, FvwmPrompt will replace FvwmConsole and provide the same functionality in a more flexible way." + fi +} diff --git a/x11-wm/fvwm3/fvwm3-1.1.0.ebuild b/x11-wm/fvwm3/fvwm3-1.1.0.ebuild deleted file mode 100644 index ab2f1f11a22e..000000000000 --- a/x11-wm/fvwm3/fvwm3-1.1.0.ebuild +++ /dev/null @@ -1,206 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -# Doc generation requires pulls in asciidoc/ruby, we'll prebuild docs -# for release ebuilds. -# Scripting for this is in sam-gentoo-scripts. -: ${FVWM3_DOCS_PREBUILT:=1} - -PYTHON_COMPAT=( python3_{10..12} ) -GO_OPTIONAL=1 -inherit autotools desktop flag-o-matic go-module python-single-r1 toolchain-funcs - -DESCRIPTION="A multiple large virtual desktop window manager derived from fvwm" -HOMEPAGE="https://www.fvwm.org/" - -if [[ ${PV} == 9999 ]]; then - inherit git-r3 - EGIT_REPO_URI="https://github.com/fvwmorg/fvwm3.git" - EGIT_BRANCH="main" -else - SRC_URI="https://github.com/fvwmorg/fvwm3/releases/download/${PV}/${P}.tar.gz" - if [[ ${FVWM3_DOCS_PREBUILT} == 1 ]]; then - SRC_URI+=" https://deps.gentoo.zip/x11-wm/fvwm3/${P}-docs.tar.xz" - fi - KEYWORDS="~amd64 ~riscv" -fi - -LICENSE="GPL-2+ FVWM - go? ( Apache-2.0 BSD MIT )" -SLOT="0" -IUSE="bidi debug +go netpbm nls perl readline stroke svg tk lock" -REQUIRED_USE=" - ${PYTHON_REQUIRED_USE}" - -DOCS=( NEWS ) - -if [[ ${PV} == 9999 ]]; then - DOCS+=( - dev-docs/COMMANDS - dev-docs/DEVELOPERS.md - dev-docs/INSTALL.md - dev-docs/PARSING.md - dev-docs/TODO.md - dev-docs/NEW-COMMANDS.md - ) -fi - -BDEPEND=" - virtual/pkgconfig - app-arch/unzip - go? ( >=dev-lang/go-1.14 ) -" - -if [[ ${FVWM3_DOCS_PREBUILT} == 0 ]]; then - BDEPEND+=" - dev-libs/libxslt - dev-ruby/asciidoctor - " -fi - -RDEPEND="${PYTHON_DEPS} - ${COMMON_DEPEND} - !x11-wm/fvwm - dev-lang/perl - dev-libs/glib:2 - dev-libs/libevent:= - media-libs/fontconfig - media-libs/libpng:= - sys-libs/zlib - x11-libs/libICE - x11-libs/libSM - x11-libs/libX11 - x11-libs/libXau - x11-libs/libxcb - x11-libs/libXcursor - x11-libs/libXdmcp - x11-libs/libXext - x11-libs/libXfixes - x11-libs/libXft - x11-libs/libXpm - x11-libs/libXrandr - x11-libs/libXrender - bidi? ( dev-libs/fribidi ) - lock? ( x11-misc/xlockmore ) - netpbm? ( media-libs/netpbm ) - perl? ( tk? ( - dev-lang/tk - dev-perl/Tk - >=dev-perl/X11-Protocol-0.56 - ) - ) - readline? ( - sys-libs/ncurses:= - sys-libs/readline:= - ) - stroke? ( dev-libs/libstroke ) - svg? ( - gnome-base/librsvg:2 - x11-libs/cairo - )" - -DEPEND="${COMMON_DEPEND} - x11-base/xorg-proto" - -PATCHES=( - "${FILESDIR}"/fvwm3-1.1.0-fix-go-detection.patch -) - -src_prepare() { - default - use go && ( sed -e 's/GOFLAGS=-ldflags="-s -w"/GOFLAGS=/' \ - -i bin/FvwmPrompt/Makefile.am || die ) - - eautoreconf -} - -src_configure() { - # Non-upstream email where bugs should be sent; used in fvwm-bug. - export FVWM_BUGADDR="desktop-wm@nogentoo.org" - - # Recommended by upstream for release. Doesn't really matter for live ebuilds. - append-flags -fno-strict-aliasing - - # Signed chars are required. - for arch in arm arm64 ppc ppc64; do - use $arch && append-flags -fsigned-chars - done - - local myconf=( - --with-imagepath=/usr/include/X11/bitmaps:/usr/include/X11/pixmaps:/usr/share/icons/fvwm - --enable-package-subdirs - $(use_enable bidi) - $(use_enable go golang) - $(use_enable nls) - $(use_enable nls iconv) - $(use_enable perl perllib) - $(use_with readline readline-library) - $(use_enable svg rsvg) - --enable-png - ) - - if [[ ${FVWM3_DOCS_PREBUILT} == 0 ]]; then - myconf+=( - --enable-mandoc - --enable-htmldoc - ) - else - # Probably not required, but let's be safe - myconf+=( - --disable-mandoc - --disable-htmldoc - ) - fi - - use readline && myconf+=( --without-termcap-library ) - - econf "${myconf[@]}" -} - -src_compile() { - PREFIX="${EPREFIX}/usr" emake AR="$(tc-getAR)" -} - -src_install() { - # Since we're manually handling docs installation, let's do that first - # and then install the rest of the files via emake - local HTML_DOCS - if [[ ${FVWM3_DOCS_PREBUILT} == 1 ]] ; then - doman "${WORKDIR}"/${P}-docs/man/**/*.[0-8] - HTML_DOCS="${WORKDIR}"/${P}-docs/html/* - else - HTML_DOCS="${S}"/doc/*.html - doman "${S}"/doc/*.[0-8] - fi - - einstalldocs - - emake DESTDIR="${ED}" prefix="/usr" exec_prefix="/usr" datarootdir="/usr/share" install - - exeinto /etc/X11/Sessions - newexe - ${PN} <<-EOF - #!/bin/sh - ${PN} - EOF - - python_scriptinto "/usr/bin" - python_doscript "${ED}/usr/bin/FvwmCommand" "${ED}/usr/bin/fvwm-menu-desktop" - - make_session_desktop fvwm3 /usr/bin/fvwm3 - -} - -pkg_postinst() { - if use go; then - ewarn "FvwmPrompt has been installed, it provides the functionality of both FvwmCommand and FvwmConsole." - ewarn "For compatibility with the existing fvwm2 configurations, the ebuild will install a FvwmCommand wrapper." - ewarn "If you need FvwmConsole, install ${PN} with USE=\"-go\";" - ewarn "however FvwmPrompt and FvwmCommand will not be installed." - else - ewarn "FvwmConsole has been installed, but FvwmCommand and FvwmPrompt are no longer included in this ebuild." - ewarn "If you need FvwmPrompt or FvwmCommand, install ${PN} with USE=\"go\"." - ewarn "In that case, FvwmPrompt will replace FvwmConsole and provide the same functionality in a more flexible way." - fi -} diff --git a/x11-wm/fvwm3/fvwm3-9999.ebuild b/x11-wm/fvwm3/fvwm3-9999.ebuild index d076b13c7a75..9a9eba17220d 100644 --- a/x11-wm/fvwm3/fvwm3-9999.ebuild +++ b/x11-wm/fvwm3/fvwm3-9999.ebuild @@ -114,9 +114,6 @@ src_prepare() { } src_configure() { - # Non-upstream email where bugs should be sent; used in fvwm-bug. - export FVWM_BUGADDR="desktop-wm@nogentoo.org" - # Recommended by upstream for release. Doesn't really matter for live ebuilds. append-flags -fno-strict-aliasing -- cgit v1.2.3