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>
This commit is contained in:
Michael Orlitzky
2020-06-17 07:37:50 -04:00
parent e0a85ab799
commit eee8e638bf
3 changed files with 49 additions and 0 deletions

View File

@@ -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

View File

@@ -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=
)
}

View File

@@ -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
}