mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-19 20:13:01 -04:00
net-misc/gmid: add 1.6.2 and tests
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
@@ -1 +1 @@
|
|||||||
DIST gmid-1.6.1.tar.gz 59488 BLAKE2B 147c8eb4e1c7195405fdce9bef8260e1a3acb145e9dfd2cb3fb126e4445685a3a1826906b01699429e98a61db6bb2089ec3399a1403323b36adf2555afc61bf2 SHA512 b98592e4bb5b1121fad07dc1fcbdbc95ce69a5648b3c2d22dba974511ae265255be62a330125c2da9b0b357edc2f24065fd8b475013d3d2023a8eded2c01a490
|
DIST gmid-1.6.2.tar.gz 60293 BLAKE2B 807f4e93d1ed0f2a69a9631504ffe28d5aee4efbba85b9e7d0a8eec5b4fb50a38285478651f196f57fbcf7b4d38ff462f78c37210720353af638d76b2b28e3e1 SHA512 053e2f95449d71c72052c422b1c51657ad48f662422a121452618c69e6bac9b23bbaa2b35b52d314eb7614b9a0f413504c87cd431bc756d455dd198c79270da8
|
||||||
|
|||||||
10
net-misc/gmid/files/gmid-1.6.2-disable-runtime-test.patch
Normal file
10
net-misc/gmid/files/gmid-1.6.2-disable-runtime-test.patch
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
--- a/regress/Makefile
|
||||||
|
+++ b/regress/Makefile
|
||||||
|
@@ -4,7 +4,6 @@
|
||||||
|
|
||||||
|
all: puny-test testdata iri_test cert.pem testca.pem valid.crt invalid.cert.pem
|
||||||
|
./puny-test
|
||||||
|
- ./runtime
|
||||||
|
./iri_test
|
||||||
|
|
||||||
|
puny-test: puny-test.o ../puny.o ../utf8.o ../utils.o ../log.o ${COMPAT}
|
||||||
@@ -3,33 +3,31 @@
|
|||||||
|
|
||||||
EAPI=7
|
EAPI=7
|
||||||
|
|
||||||
SSL_DEPS_SKIP=1
|
|
||||||
SSL_DAYS=36500
|
SSL_DAYS=36500
|
||||||
|
|
||||||
inherit ssl-cert toolchain-funcs
|
inherit ssl-cert toolchain-funcs
|
||||||
|
|
||||||
DESCRIPTION="Simple and secure Gemini server"
|
DESCRIPTION="Simple and secure Gemini server"
|
||||||
HOMEPAGE="https://www.omarpolo.com/pages/gmid.html"
|
HOMEPAGE="https://www.omarpolo.com/pages/gmid.html"
|
||||||
|
SRC_URI="https://git.omarpolo.com/${PN}/snapshot/${P}.tar.gz"
|
||||||
if [[ ${PV} == "9999" ]] ; then
|
|
||||||
inherit git-r3
|
|
||||||
EGIT_REPO_URI="https://git.omarpolo.com/${PN}"
|
|
||||||
else
|
|
||||||
SRC_URI="https://git.omarpolo.com/${PN}/snapshot/${P}.tar.gz"
|
|
||||||
KEYWORDS="~amd64 ~x86"
|
|
||||||
fi
|
|
||||||
|
|
||||||
LICENSE="ISC"
|
LICENSE="ISC"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
IUSE="+seccomp test"
|
||||||
|
RESTRICT="!test? ( test )"
|
||||||
|
|
||||||
PATCHES=( "${FILESDIR}"/${P}-make-pidfile.patch )
|
PATCHES=( "${FILESDIR}"/${P}-make-pidfile.patch )
|
||||||
|
|
||||||
DEPEND="acct-user/gemini
|
DEPEND="
|
||||||
|
acct-user/gemini
|
||||||
dev-libs/libevent
|
dev-libs/libevent
|
||||||
dev-libs/libretls
|
dev-libs/libretls
|
||||||
"
|
"
|
||||||
BDEPEND="sys-devel/flex
|
BDEPEND="
|
||||||
virtual/yacc"
|
sys-devel/flex
|
||||||
|
virtual/pkgconfig
|
||||||
|
virtual/yacc
|
||||||
|
"
|
||||||
RDEPEND="${DEPEND}"
|
RDEPEND="${DEPEND}"
|
||||||
|
|
||||||
DOCS=( README.md ChangeLog )
|
DOCS=( README.md ChangeLog )
|
||||||
@@ -37,28 +35,46 @@ DOCS=( README.md ChangeLog )
|
|||||||
src_prepare() {
|
src_prepare() {
|
||||||
default
|
default
|
||||||
|
|
||||||
# QA Notice: command not found
|
if use seccomp && has usersandbox ${FEATURES} ; then
|
||||||
# remove `etags` from the "all" target
|
eapply "${FILESDIR}"/${P}-disable-runtime-test.patch
|
||||||
sed \
|
fi
|
||||||
-e "s/^\(all: .*\) TAGS \(.*\)$/\1 \2/" \
|
|
||||||
-i Makefile || die
|
|
||||||
}
|
}
|
||||||
|
|
||||||
src_configure() {
|
src_configure() {
|
||||||
|
local conf_args
|
||||||
|
|
||||||
# note: not an autoconf configure script
|
# note: not an autoconf configure script
|
||||||
./configure \
|
conf_args=(
|
||||||
CC="$(tc-getCC)" \
|
CC="$(tc-getCC)"
|
||||||
PREFIX="${EPREFIX}"/usr/share \
|
PREFIX="${EPREFIX}"/usr/share
|
||||||
BINDIR="${EPREFIX}"/usr/bin \
|
BINDIR="${EPREFIX}"/usr/bin
|
||||||
CFLAGS="${CFLAGS}" \
|
CFLAGS="${CFLAGS}"
|
||||||
LDFLAGS="${LDFLAGS} -ltls -lssl -lcrypto -levent" || die
|
LDFLAGS="${LDFLAGS} -ltls -lssl -lcrypto -levent"
|
||||||
|
)
|
||||||
|
if ! use seccomp ; then
|
||||||
|
conf_args+=( --disable-sandbox )
|
||||||
|
fi
|
||||||
|
|
||||||
|
./configure "${conf_args[@]}" || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
emake gmid
|
||||||
|
if use test ; then
|
||||||
|
emake gg
|
||||||
|
emake -C regress puny-test testdata iri_test
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_test() {
|
||||||
|
emake regress
|
||||||
}
|
}
|
||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
default
|
default
|
||||||
|
|
||||||
dodir /etc/gmid
|
insinto /etc/gmid
|
||||||
cp "${FILESDIR}"/gmid.conf "${ED}"/etc/gmid/gmid.conf || die
|
doins "${FILESDIR}"/gmid.conf
|
||||||
|
|
||||||
newinitd "${FILESDIR}"/gmid.initd gmid
|
newinitd "${FILESDIR}"/gmid.initd gmid
|
||||||
newconfd "${FILESDIR}"/gmid.confd gmid
|
newconfd "${FILESDIR}"/gmid.confd gmid
|
||||||
@@ -3,50 +3,68 @@
|
|||||||
|
|
||||||
EAPI=7
|
EAPI=7
|
||||||
|
|
||||||
SSL_DEPS_SKIP=1
|
|
||||||
SSL_DAYS=36500
|
SSL_DAYS=36500
|
||||||
|
inherit git-r3 ssl-cert toolchain-funcs
|
||||||
inherit ssl-cert toolchain-funcs
|
|
||||||
|
|
||||||
DESCRIPTION="Simple and secure Gemini server"
|
DESCRIPTION="Simple and secure Gemini server"
|
||||||
HOMEPAGE="https://www.omarpolo.com/pages/gmid.html"
|
HOMEPAGE="https://www.omarpolo.com/pages/gmid.html"
|
||||||
|
EGIT_REPO_URI="https://github.com/omar-polo/${PN}.git https://git.omarpolo.com/${PN}"
|
||||||
if [[ ${PV} == "9999" ]] ; then
|
|
||||||
inherit git-r3
|
|
||||||
EGIT_REPO_URI="https://git.omarpolo.com/${PN}"
|
|
||||||
else
|
|
||||||
SRC_URI="https://git.omarpolo.com/${PN}/snapshot/${P}.tar.gz"
|
|
||||||
KEYWORDS="~amd64 ~x86"
|
|
||||||
fi
|
|
||||||
|
|
||||||
LICENSE="ISC"
|
LICENSE="ISC"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
|
IUSE="+seccomp test"
|
||||||
|
RESTRICT="
|
||||||
|
!test? ( test )
|
||||||
|
seccomp? ( test )
|
||||||
|
"
|
||||||
|
|
||||||
DEPEND="acct-user/gemini
|
DEPEND="
|
||||||
|
acct-user/gemini
|
||||||
dev-libs/libevent
|
dev-libs/libevent
|
||||||
dev-libs/libretls
|
dev-libs/libretls
|
||||||
"
|
"
|
||||||
BDEPEND="sys-devel/flex
|
BDEPEND="
|
||||||
virtual/yacc"
|
virtual/pkgconfig
|
||||||
|
virtual/yacc
|
||||||
|
"
|
||||||
RDEPEND="${DEPEND}"
|
RDEPEND="${DEPEND}"
|
||||||
|
|
||||||
DOCS=( README.md ChangeLog )
|
DOCS=( README.md ChangeLog )
|
||||||
|
|
||||||
src_configure() {
|
src_configure() {
|
||||||
|
local conf_args
|
||||||
|
|
||||||
# note: not an autoconf configure script
|
# note: not an autoconf configure script
|
||||||
./configure \
|
conf_args=(
|
||||||
CC="$(tc-getCC)" \
|
CC="$(tc-getCC)"
|
||||||
PREFIX="${EPREFIX}"/usr/share \
|
PREFIX="${EPREFIX}"/usr/share
|
||||||
BINDIR="${EPREFIX}"/usr/bin \
|
BINDIR="${EPREFIX}"/usr/bin
|
||||||
CFLAGS="${CFLAGS}" \
|
CFLAGS="${CFLAGS}"
|
||||||
LDFLAGS="${LDFLAGS} -ltls -lssl -lcrypto -levent" || die
|
LDFLAGS="${LDFLAGS} -ltls -lssl -lcrypto -levent"
|
||||||
|
)
|
||||||
|
if ! use seccomp ; then
|
||||||
|
conf_args+=( --disable-sandbox )
|
||||||
|
fi
|
||||||
|
|
||||||
|
./configure "${conf_args[@]}" || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
emake gmid
|
||||||
|
if use test ; then
|
||||||
|
emake -C regress gg puny-test testdata iri_test
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_test() {
|
||||||
|
emake regress
|
||||||
}
|
}
|
||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
default
|
default
|
||||||
|
|
||||||
dodir /etc/gmid
|
insinto /etc/gmid
|
||||||
cp "${FILESDIR}"/gmid.conf "${ED}"/etc/gmid/gmid.conf || die
|
doins "${FILESDIR}"/gmid.conf
|
||||||
|
|
||||||
newinitd "${FILESDIR}"/gmid.initd gmid
|
newinitd "${FILESDIR}"/gmid.initd gmid
|
||||||
newconfd "${FILESDIR}"/gmid.confd gmid
|
newconfd "${FILESDIR}"/gmid.confd gmid
|
||||||
|
|||||||
Reference in New Issue
Block a user