1
0

dev-libs/mustach: New package

Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: Ryan Fox <flewkey@2a03.party>
This commit is contained in:
Ryan Fox 2021-01-30 01:22:30 +00:00
parent 4cd9b5ac01
commit 18daf09a34
Signed by: flewkey
GPG Key ID: 94F56ADFD848851E
4 changed files with 80 additions and 0 deletions

View File

@ -0,0 +1,4 @@
DIST mustach-0.99.tar.gz 22100 BLAKE2B 621f469e373ce5e0247570c4bfe707e6f164b2e2ebce1f4b09c21d8b417528aa32e56ea2be61b66b340215a3bd772176e9aa5725ff38ae00eaaa1ce6476c0cce SHA512 432cb6c72487bfba4103c0925271bdc7c3e7f38ed19bfec09d7ef9f9af16ecac3885ff037e94ca5d3023ffd3d5c526fcb102218d4c3ad13563406cab10e7a4b2
EBUILD mustach-0.99.ebuild 811 BLAKE2B b7d83a3f937d4776da633016a796d390a74df42f5f0ddcf445b529289bd3bf0641cc6b1ebfb20f1f8fe561a4f0f4488440038783a687f4ccdc9513e245af4029 SHA512 5cd1e393838b6e4a513caa71199ab745ed17f4d9838aefa40480f4cfddfe6b17e7045e3f2c33dbcb6caaf98fbd4a489530b9a0c8e5ea9de6c3b1b61c9a7a51ed
EBUILD mustach-9999.ebuild 684 BLAKE2B 27c1d2f35817cb174df507de07800c27ad9a391daeda533519cae465c634c50c2cba5675ad57c66159c6b7f8ce6757d2b07b9cb78e41f501ac855d67fb53d708 SHA512 25406d7bf9e915d8e4dcb8124fa5203f6b48122a6aab0cd41aff1a9e9156aeacce513086ee8ba38971e5eddb438f228749a4464518bba6859535d72a8757a6d6
MISC metadata.xml 236 BLAKE2B fdb34c66e3059efc0efb2328ffedb24c495be95dfeb68b7adcdf5ab1a88eee6788294d07ec032238de7d9127cffd50a1598b42aa8f99d3d11f54a761c79a9482 SHA512 43add4c2db3d06110521dea982cfcbddc98d63bb1e1b89952511654d54f09746e0d76ac1e0f0e70d2832357f44fe11fc4653500b856c7b29d05a55bb70535e80

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>flewkey@2a03.party</email>
<name>Ryan Fox</name>
</maintainer>
</pkgmetadata>

View File

@ -0,0 +1,37 @@
# Copyright 2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
if [[ ${PV} != *9999* ]]; then
SRC_URI="https://gitlab.com/jobol/mustach/-/archive/${PV}/mustach-${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
else
inherit git-r3
EGIT_REPO_URI="https://gitlab.com/jobol/mustach.git"
fi
DESCRIPTION="C implementation of mustache templating"
HOMEPAGE="https://gitlab.com/jobol/mustach"
LICENSE="ISC"
SLOT="0"
DEPEND="
dev-libs/json-c
"
RDEPEND="${DEPEND}"
BDEPEND=""
src_prepare() {
default
sed -i "s/\/lib/\/$(get_libdir)/g" "${S}/Makefile"
sed -i 's/-shared/$(lib_LDFLAGS)/' "${S}/Makefile"
}
src_compile() {
emake lib_LDFLAGS="-shared -Wl,-soname=libmustach.so"
}
src_install() {
emake DESTDIR="${D}" PREFIX="/usr" LIBDIR="/usr/$(get_libdir)" install
}

View File

@ -0,0 +1,31 @@
# Copyright 2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
if [[ ${PV} != *9999* ]]; then
SRC_URI="https://gitlab.com/jobol/mustach/-/archive/${PV}/mustach-${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
else
inherit git-r3
EGIT_REPO_URI="https://gitlab.com/jobol/mustach.git"
fi
DESCRIPTION="C implementation of mustache templating"
HOMEPAGE="https://gitlab.com/jobol/mustach"
LICENSE="ISC"
SLOT="0"
DEPEND="
dev-libs/json-c
"
RDEPEND="${DEPEND}"
BDEPEND=""
src_compile() {
emake lib_LDFLAGS="-shared -Wl,-soname=libmustach.so.0.99"
}
src_install() {
emake DESTDIR="${D}" PREFIX="/usr" LIBDIR="/usr/$(get_libdir)" install
}