diff options
author | Michael Orlitzky <mjo@gentoo.org> | 2020-06-17 07:37:50 -0400 |
---|---|---|
committer | Michael Orlitzky <mjo@gentoo.org> | 2020-06-17 09:38:16 -0400 |
commit | eee8e638bf1559af6f93fe2995d69e2b0b9f176c (patch) | |
tree | 828660a79062d261802a9371b02c009ba9c2104d /dev-util | |
parent | dev-util/bitcoin-tx-0.20.0: Remove reference to unnecessary/missing patch (diff) | |
download | gentoo-eee8e638bf1559af6f93fe2995d69e2b0b9f176c.tar.gz gentoo-eee8e638bf1559af6f93fe2995d69e2b0b9f176c.tar.bz2 gentoo-eee8e638bf1559af6f93fe2995d69e2b0b9f176c.zip |
dev-util/netsurf-buildsystem: new version 1.9.
This version comes with a gentoo-helpers-r2.sh that contains the
correct Gentoo-prefix paths for PREFIX and NSSHARED. The problem was
originally reported against netsurf.eclass, but it has migrated to
this script in the meantime.
Bug: https://bugs.gentoo.org/489542
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
Diffstat (limited to 'dev-util')
-rw-r--r-- | dev-util/netsurf-buildsystem/Manifest | 1 | ||||
-rw-r--r-- | dev-util/netsurf-buildsystem/files/gentoo-helpers-r2.sh | 22 | ||||
-rw-r--r-- | dev-util/netsurf-buildsystem/netsurf-buildsystem-1.9.ebuild | 26 |
3 files changed, 49 insertions, 0 deletions
diff --git a/dev-util/netsurf-buildsystem/Manifest b/dev-util/netsurf-buildsystem/Manifest index 14bd8454e331..91a37af3916f 100644 --- a/dev-util/netsurf-buildsystem/Manifest +++ b/dev-util/netsurf-buildsystem/Manifest @@ -1 +1,2 @@ DIST buildsystem-1.8.tar.gz 38617 BLAKE2B 0fd5539feae0b81828efe90c82baf6ce7fceec2f2189adddb0e32d2106f9263ebd14b32f3dce8daae13110f0e69801caed48ce81709ce09d809ba50041690cc7 SHA512 0f577f4867e5e12770f9b9c42ea55e884362180bc195b6ebf56e56305ce84e230407cd2ebb3b182cc03087ffef5f39187e52e2e2f8f2b86aa20a16fa33bdff8b +DIST buildsystem-1.9.tar.gz 38723 BLAKE2B 0fc4aae4f9a21058c7e437170e74147f6b6dc20220d53986a212e717846d5738df2771081f000705cd69335fbe61653b24a3e86d454a53b24f9cadd5e7aaac97 SHA512 52d7181af56946b95f22d5cc8fb2c58287fe43c940d4104e4a05744cfe332d0e0ea6da76cb8d635eb34cac4d66f53dc01ac5f440b82a207265d39744f112a80d diff --git a/dev-util/netsurf-buildsystem/files/gentoo-helpers-r2.sh b/dev-util/netsurf-buildsystem/files/gentoo-helpers-r2.sh new file mode 100644 index 000000000000..403279ecc5f6 --- /dev/null +++ b/dev-util/netsurf-buildsystem/files/gentoo-helpers-r2.sh @@ -0,0 +1,22 @@ +#!/bin/bash + +netsurf_define_makeconf() { + NETSURF_MAKECONF=( + PREFIX="${EPREFIX}/usr" + NSSHARED="${EPREFIX}/usr/share/netsurf-buildsystem" + LIBDIR="$(get_libdir)" + Q= + CC="$(tc-getCC)" + LD="$(tc-getLD)" + HOST_CC="\$(CC)" + BUILD_CC="$(tc-getBUILD_CC)" + CXX="$(tc-getCXX)" + BUILD_CXX="$(tc-getBUILD_CXX)" + CCOPT= + CCNOOPT= + CCDBG= + LDDBG= + AR="$(tc-getAR)" + WARNFLAGS= + ) +} diff --git a/dev-util/netsurf-buildsystem/netsurf-buildsystem-1.9.ebuild b/dev-util/netsurf-buildsystem/netsurf-buildsystem-1.9.ebuild new file mode 100644 index 000000000000..70b4b63fad4f --- /dev/null +++ b/dev-util/netsurf-buildsystem/netsurf-buildsystem-1.9.ebuild @@ -0,0 +1,26 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +MY_P="buildsystem-${PV}" +DESCRIPTION="Build system used for netsurf and its libs" +HOMEPAGE="https://www.netsurf-browser.org" +SRC_URI="https://download.netsurf-browser.org/libs/releases/${MY_P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~m68k-mint" + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + default + sed -e 's:/bin/which:which:' -i "makefiles/Makefile.tools" || die +} + +src_install() { + emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install + insinto /usr/share/netsurf-buildsystem + newins "${FILESDIR}/gentoo-helpers-r2.sh" gentoo-helpers.sh +} |