1
0
Fork 0

dev-libs/clearsilver: New package

The ebuild isn't the best, but I tried.

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-31 05:12:08 +00:00
parent 5368be6ed2
commit 3120a61a10
Signed by: flewkey
GPG Key ID: 94F56ADFD848851E
4 changed files with 144 additions and 0 deletions

View File

@ -0,0 +1,4 @@
DIST clearsilver-0.11.0.tar.gz 442482 BLAKE2B d78a65b555ae7e81becfb37c3bab73f0523d29f63bbb5137700707e379382e1cc031066541b042b0b59a62d683f60ad7b0f0c1265b36e8800438515e8b470835 SHA512 5573e04ce884cdcb58f94695f00c199800aa28b5d6482533f93b7e7b5d119ec02747602f022f05a102a43af14ea55dc58abad0683d210c753e9b9b65fd05aee2
EBUILD clearsilver-0.11.0.ebuild 1618 BLAKE2B d93295b8109d51165c8f50b37131856f902085ddd893ab280ec3558c26d856b746319d6fdfd9e6f695d0b656d6af5ec210463fbac716bf001e401a9118ef6011 SHA512 f8c54114ff6128983650970ebec9908d94592cbeff970f2b1aa6ed029c335d8954e97e9a6f907bec272b5eaed64e6a101d18d91d81b72b3b63e8dc2f5849b18b
EBUILD clearsilver-9999.ebuild 1618 BLAKE2B d93295b8109d51165c8f50b37131856f902085ddd893ab280ec3558c26d856b746319d6fdfd9e6f695d0b656d6af5ec210463fbac716bf001e401a9118ef6011 SHA512 f8c54114ff6128983650970ebec9908d94592cbeff970f2b1aa6ed029c335d8954e97e9a6f907bec272b5eaed64e6a101d18d91d81b72b3b63e8dc2f5849b18b
MISC metadata.xml 476 BLAKE2B 11dfa0ffc64fa5657602e3e654a8fb9396bdf70e9900b6d06fe13ce84e9328be829801b177d8b47a6f6ca0ed27854c937fb2a7471891331ac26001fbcda24e63 SHA512 250db23504e5f7d5f3c8a389340721bc2898d81546d31a36e4fb5fb18942698ef0862a08f732b5f46a027d298d807785113ee094ccf93d91398d7a5f40be292e

View File

@ -0,0 +1,63 @@
# Copyright 2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit autotools
if [[ ${PV} != *9999* ]]; then
SRC_URI="https://github.com/blong42/${PN}/archive/${P}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
MY_P="${PN}-${P}"
S="${WORKDIR}/${MY_P}"
ECONF_SOURCE="${S}"
else
inherit git-r3
EGIT_REPO_URI="https://github.com/blong42/clearsilver.git"
fi
DESCRIPTION="Clearsilver HTML templating system"
HOMEPAGE="http://clearsilver.net/"
LICENSE="BSD-2"
SLOT="0"
IUSE="compression gettext apache java python perl ruby csharp"
DEPEND="
dev-libs/streamhtmlparser
compression? ( sys-libs/zlib )
"
RDEPEND="${DEPEND}"
BDEPEND=""
src_prepare() {
default
eaclocal -I m4
eautoheader
eautoconf
# Do not build streamhtmlparser
sed -i 's/cs: libs\/libstreamhtmlparser.a/cs:/' "${S}/Makefile"
sed -i 's/streamhtmlparser //g' "${S}/Makefile"
sed -i 's/$(DLIBS:-l%=$(LIB_DIR)lib%.a)/$(filter-out ..\/libs\/libstreamhtmlparser.a, $(DLIBS:-l%=$(LIB_DIR)lib%.a))/g' "${S}/rules.mk.in"
# Fix C99 vararg macros (Fix by flyingdutchman23)
sed -i "s/NE_LOG_WARN,f,__VA_ARGS__)/NE_LOG_WARN,f,##__VA_ARGS__)/" "${S}/util/neo_misc.h"
sed -i "s/..\/libs\/libstreamhtmlparser.a//g" "${S}/cgi/Makefile"
# Use Python 2 in Makefile
sed -i "s/scripts\/document.py/python2 scripts\/document.py/g" "${S}/Makefile"
}
src_compile() {
emake
emake man
}
src_configure() {
econf \
$(use_enable compression) \
$(use_enable gettext) \
$(use_enable apache) \
$(use_enable java) \
$(use_enable python) \
$(use_enable perl) \
$(use_enable ruby) \
$(use_enable csharp)
}

View File

@ -0,0 +1,63 @@
# Copyright 2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit autotools
if [[ ${PV} != *9999* ]]; then
SRC_URI="https://github.com/blong42/${PN}/archive/${P}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
MY_P="${PN}-${P}"
S="${WORKDIR}/${MY_P}"
ECONF_SOURCE="${S}"
else
inherit git-r3
EGIT_REPO_URI="https://github.com/blong42/clearsilver.git"
fi
DESCRIPTION="Clearsilver HTML templating system"
HOMEPAGE="http://clearsilver.net/"
LICENSE="BSD-2"
SLOT="0"
IUSE="compression gettext apache java python perl ruby csharp"
DEPEND="
dev-libs/streamhtmlparser
compression? ( sys-libs/zlib )
"
RDEPEND="${DEPEND}"
BDEPEND=""
src_prepare() {
default
eaclocal -I m4
eautoheader
eautoconf
# Do not build streamhtmlparser
sed -i 's/cs: libs\/libstreamhtmlparser.a/cs:/' "${S}/Makefile"
sed -i 's/streamhtmlparser //g' "${S}/Makefile"
sed -i 's/$(DLIBS:-l%=$(LIB_DIR)lib%.a)/$(filter-out ..\/libs\/libstreamhtmlparser.a, $(DLIBS:-l%=$(LIB_DIR)lib%.a))/g' "${S}/rules.mk.in"
# Fix C99 vararg macros (Fix by flyingdutchman23)
sed -i "s/NE_LOG_WARN,f,__VA_ARGS__)/NE_LOG_WARN,f,##__VA_ARGS__)/" "${S}/util/neo_misc.h"
sed -i "s/..\/libs\/libstreamhtmlparser.a//g" "${S}/cgi/Makefile"
# Use Python 2 in Makefile
sed -i "s/scripts\/document.py/python2 scripts\/document.py/g" "${S}/Makefile"
}
src_compile() {
emake
emake man
}
src_configure() {
econf \
$(use_enable compression) \
$(use_enable gettext) \
$(use_enable apache) \
$(use_enable java) \
$(use_enable python) \
$(use_enable perl) \
$(use_enable ruby) \
$(use_enable csharp)
}

View File

@ -0,0 +1,14 @@
<?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>
<use>
<flag name="compression">Enable HTML compression support</flag>
<flag name="gettext">Enable gettext message translation</flag>
<flag name="apache">Build Apache 1.3.x module</flag>
<flag name="csharp">Build the C# module</flag>
</use>
</pkgmetadata>