dev-libs/mustach: add 1.2.6
This commit is contained in:
parent
bf554e049c
commit
da86d7e6cb
|
@ -1 +1,2 @@
|
||||||
DIST mustach-1.2.5.tar.bz2 34049 BLAKE2B 6004c11dca4b0ac6720dedfbe8df43ac5340084fe092b6bc93abc45327facfb03cd13d83378b038677d767c2f44421a7d54cc723d314ab7060e978eaa84417a9 SHA512 a6c83b19c98d77a1d11013a77539691076cff4dbeca6eb865569bc2bd80b2497c835e2392bf4fcde64822d05037e95aa185c6a77b8ae63dbb71fce86594d52f7
|
DIST mustach-1.2.5.tar.bz2 34049 BLAKE2B 6004c11dca4b0ac6720dedfbe8df43ac5340084fe092b6bc93abc45327facfb03cd13d83378b038677d767c2f44421a7d54cc723d314ab7060e978eaa84417a9 SHA512 a6c83b19c98d77a1d11013a77539691076cff4dbeca6eb865569bc2bd80b2497c835e2392bf4fcde64822d05037e95aa185c6a77b8ae63dbb71fce86594d52f7
|
||||||
|
DIST mustach-1.2.6.tar.bz2 35049 BLAKE2B 859b8c1fbfc3c0b021d521f0f977f241217372c7a0597b309ddb20370e1120d87b7604f81099bcef04651f84d2fdf2ef9468f9cb54e290e302f08b459af7b673 SHA512 2cbee2e3395b45a41e37a667f3dcc5a04fe2aa3cf27a202aee4115821ff8a4ce5d256ef6602fca258b2c1293dbe1e8a4138b50c714bcd9f8544d464ce68a981f
|
||||||
|
|
48
dev-libs/mustach/mustach-1.2.6.ebuild
Normal file
48
dev-libs/mustach/mustach-1.2.6.ebuild
Normal file
|
@ -0,0 +1,48 @@
|
||||||
|
# Copyright 1999-2023 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
if [[ ${PV} == 9999 ]]; then
|
||||||
|
inherit git-r3
|
||||||
|
EGIT_REPO_URI="https://gitlab.com/jobol/mustach.git"
|
||||||
|
else
|
||||||
|
SRC_URI="https://gitlab.com/jobol/mustach/-/archive/${PV}/${P}.tar.bz2"
|
||||||
|
KEYWORDS="~amd64"
|
||||||
|
fi
|
||||||
|
|
||||||
|
DESCRIPTION="C implementation of mustache templating"
|
||||||
|
HOMEPAGE="https://gitlab.com/jobol/mustach"
|
||||||
|
LICENSE="ISC"
|
||||||
|
SLOT="0"
|
||||||
|
IUSE="tool json-c jansson"
|
||||||
|
REQUIRED_USE="tool? ( || ( json-c jansson ) )"
|
||||||
|
|
||||||
|
DEPEND="
|
||||||
|
json-c? ( dev-libs/json-c )
|
||||||
|
jansson? ( dev-libs/jansson )
|
||||||
|
"
|
||||||
|
RDEPEND="${DEPEND}"
|
||||||
|
BDEPEND="virtual/pkgconfig"
|
||||||
|
|
||||||
|
SOVER=".1"
|
||||||
|
SOVEREV=".1.2"
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
emake jsonc=$(usex json-c) cjson=no jansson=$(usex jansson) libs=all
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
LIBDIR="/usr/$(get_libdir)"
|
||||||
|
dodir "${LIBDIR}/pkgconfig"
|
||||||
|
for dso in "${S}/"*".so${SOVEREV}"; do
|
||||||
|
dolib.so "${dso}"
|
||||||
|
dso=${dso##*/}
|
||||||
|
dosym "${dso}" "${LIBDIR}/${dso::-2}"
|
||||||
|
dosym "${dso}" "${LIBDIR}/${dso::-4}"
|
||||||
|
done
|
||||||
|
use tool && dobin "${S}/mustach"
|
||||||
|
cp "${S}/libmustach"*".pc" "${D}${LIBDIR}/pkgconfig"
|
||||||
|
gzip -d "${S}/mustach${SOVER}.gz"
|
||||||
|
doman "${S}/mustach${SOVER}"
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user