mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-21 10:37:22 -08:00
dev-libs/libutf8proc: tidy
Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Akinori Hattori <hattya@gentoo.org>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
EAPI="7"
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
@@ -23,7 +23,7 @@ S="${WORKDIR}/${MY_P}"
|
||||
_emake() {
|
||||
source "${EPREFIX}"/usr/share/netsurf-buildsystem/gentoo-helpers.sh
|
||||
netsurf_define_makeconf
|
||||
emake "${NETSURF_MAKECONF[@]}" COMPONENT_TYPE=lib-shared $@
|
||||
emake "${NETSURF_MAKECONF[@]}" COMPONENT_TYPE=lib-shared "${@}"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
|
||||
@@ -1,15 +1,13 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
EAPI="7"
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
MY_P="${P#lib}"
|
||||
|
||||
DESCRIPTION="A clean C Library for processing UTF-8 Unicode data"
|
||||
HOMEPAGE="https://github.com/JuliaStrings/utf8proc"
|
||||
SRC_URI="https://github.com/JuliaStrings/utf8proc/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
SRC_URI="https://github.com/JuliaStrings/${PN#lib}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0/${PV}"
|
||||
@@ -17,10 +15,10 @@ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x64-cyg
|
||||
IUSE="test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
BDEPEND="test? ( =app-i18n/unicode-data-12.0* )"
|
||||
|
||||
S="${WORKDIR}/${P#lib}"
|
||||
|
||||
PATCHES=(
|
||||
# Don't build or install static libs
|
||||
"${FILESDIR}/${PN}-2.3.0-no-static.patch"
|
||||
@@ -28,18 +26,17 @@ PATCHES=(
|
||||
"${FILESDIR}/${PN}-2.3.0-tests-nofetch.patch"
|
||||
)
|
||||
|
||||
_emake() {
|
||||
emake CC=$(tc-getCC) AR=$(tc-getAR) "$@"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
_emake
|
||||
emake \
|
||||
AR="$(tc-getAR)" \
|
||||
CC="$(tc-getCC)"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
_emake DESTDIR="${D}" \
|
||||
prefix="${EPREFIX}/usr" \
|
||||
libdir="${EPREFIX}/usr/$(get_libdir)" \
|
||||
emake \
|
||||
DESTDIR="${ED}" \
|
||||
prefix="/usr" \
|
||||
libdir="/usr/$(get_libdir)" \
|
||||
install
|
||||
# This package used to use netsurf's version as an upstream, which lives in
|
||||
# its own little world. Unlike julia's version, it puts its header file
|
||||
@@ -51,5 +48,5 @@ src_install() {
|
||||
}
|
||||
|
||||
src_test() {
|
||||
_emake check
|
||||
emake CC="$(tc-getCC)" check
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user