app-text/lowdown: add package

Package-Manager: Portage-3.0.17, Repoman-3.0.2
Signed-off-by: Anna Vyalkova <cybertailor@gmail.com>
This commit is contained in:
Anna Vyalkova
2021-03-22 01:17:31 +05:00
parent 42cb8dbae0
commit ec651080b5
4 changed files with 118 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST lowdown-0.8.3.tar.gz 201286 BLAKE2B 7bbebfa625e98e4a23fde37e67c7a02c4113242ddd7cee249393f3f74db52a799085bb812d323e42092c823be122fac0513e9d50b69b28c02a443b7cfd7706a0 SHA512 6c1a8fe7fc9ee0a34d0be35aefbcf597e0335b31cdfc3201e5e5db58f9bc79b26ddd2495b74ce0b8e89b486df300a2ea338c18bc991c61527a2360dca2c9804f

View File

@@ -0,0 +1,50 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit toolchain-funcs
DESCRIPTION="simple markdown translator"
HOMEPAGE="https://kristaps.bsd.lv/lowdown/"
if [[ ${PV} == "9999" ]] ; then
inherit git-r3
EGIT_REPO_URI="https://github.com/kristapsdz/${PN}.git"
KEYWORDS=""
else
SRC_URI="https://kristaps.bsd.lv/${PN}/snapshots/${P}.tar.gz"
KEYWORDS="~*"
fi
LICENSE="ISC"
SLOT="0"
IUSE=""
DEPEND=""
RDEPEND=""
src_prepare() {
default
# note: not an autoconf configure script (oconfigure)
cat <<-EOF > "configure.local"
PREFIX="${EPREFIX}/usr"
BINDIR="${EPREFIX}/usr/bin"
SBINDIR="${EPREFIX}/usr/sbin"
LIBDIR="${EPREFIX}/usr/$(get_libdir)"
MANDIR="${EPREFIX}/usr/share/man"
INCLUDEDIR="${EPREFIX}/usr/include"
CFLAGS="${CFLAGS} ${CPPFLAGS}"
LDFLAGS="${LDFLAGS}"
CC="$(tc-getCC)"
# fix utf-8 locale on musl
$(usex elibc_musl UTF8_LOCALE=C.UTF-8 '')
EOF
}
src_configure() {
./configure
}

View File

@@ -0,0 +1,50 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit toolchain-funcs
DESCRIPTION="simple markdown translator"
HOMEPAGE="https://kristaps.bsd.lv/lowdown/"
if [[ ${PV} == "9999" ]] ; then
inherit git-r3
EGIT_REPO_URI="https://github.com/kristapsdz/${PN}.git"
KEYWORDS=""
else
SRC_URI="https://kristaps.bsd.lv/${PN}/snapshots/${P}.tar.gz"
KEYWORDS="~*"
fi
LICENSE="ISC"
SLOT="0"
IUSE=""
DEPEND=""
RDEPEND=""
src_prepare() {
default
# note: not an autoconf configure script (oconfigure)
cat <<-EOF > "configure.local"
PREFIX="${EPREFIX}/usr"
BINDIR="${EPREFIX}/usr/bin"
SBINDIR="${EPREFIX}/usr/sbin"
LIBDIR="${EPREFIX}/usr/$(get_libdir)"
MANDIR="${EPREFIX}/usr/share/man"
INCLUDEDIR="${EPREFIX}/usr/include"
CFLAGS="${CFLAGS} ${CPPFLAGS}"
LDFLAGS="${LDFLAGS}"
CC="$(tc-getCC)"
# fix utf-8 locale on musl
$(usex elibc_musl UTF8_LOCALE=C.UTF-8 '')
EOF
}
src_configure() {
./configure
}

View File

@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<upstream>
<maintainer>
<name>kristapsdz</name>
<email>kristaps@bsd.lv</email>
</maintainer>
<changelog>https://kristaps.bsd.lv/lowdown/archive.html</changelog>
<bugs-to>https://github.com/kristapsdz/lowdown/issues</bugs-to>
<remote-id type="github">kristapsdz/lowdown</remote-id>
</upstream>
<maintainer type="person">
<email>cybertailor@gmail.com</email>
<name>Anna</name>
</maintainer>
</pkgmetadata>