app-text/smu: initial import

Package-Manager: Portage-3.0.22, Repoman-3.0.3
Signed-off-by: Nickolas Raymond Kaczynski <nrk@disroot.org>
This commit is contained in:
Nickolas Raymond Kaczynski
2021-09-07 06:32:50 +06:00
parent f408da0c69
commit 77b631651a
4 changed files with 73 additions and 0 deletions

1
app-text/smu/Manifest Normal file
View File

@@ -0,0 +1 @@
DIST smu-1.5.tar.gz 8552 BLAKE2B 1539c32c1a3a63d47541d226de5b60946d0cb85460fa01e8f9562f82aa546f2815403027932e5d18d875f6c54db181354cb0a5036369f2b8519c0af6033f61b4 SHA512 243f6896e34acf3a21dc5b55e4aa0f99bf417917b20716d3e9997a33320e7151ecc9e889e26d87bd7be3da38b964ed496e149a7d0e4236124e000d030939a8d4

10
app-text/smu/metadata.xml Normal file
View File

@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>nrk@disroot.org</email>
</maintainer>
<upstream>
<remote-id type="github">Gottox/smu</remote-id>
</upstream>
</pkgmetadata>

View File

@@ -0,0 +1,31 @@
# Copyright 1999-2021 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://github.com/Gottox/${PN}.git"
else
KEYWORDS="~amd64"
SRC_URI="https://github.com/Gottox/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
fi
DESCRIPTION="Simple markup - markdown like syntax"
HOMEPAGE="https://github.com/Gottox/smu"
LICENSE="MIT"
SLOT="0"
src_prepare() {
default
sed -i \
-e '/^CFLAGS/ s|-g -O0 ||;s|-Werror ||;s|^CFLAGS =|CFLAGS +=|;' \
-e '/^LDFLAGS/ s|^LDFLAGS =|LDFLAGS +=|' \
config.mk || die "sed failed"
}
src_install() {
emake PREFIX="${EPREFIX}/usr" DESTDIR="${ED}" install
dodoc "documentation"
}

View File

@@ -0,0 +1,31 @@
# Copyright 1999-2021 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://github.com/Gottox/smu.git"
else
SRC_URI="https://github.com/Gottox/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
fi
DESCRIPTION="Simple markup - markdown like syntax"
HOMEPAGE="https://github.com/Gottox/smu"
LICENSE="MIT"
SLOT="0"
src_prepare() {
default
sed -i \
-e '/^CFLAGS/ s|-g -O0 ||;s|-Werror ||;s|^CFLAGS =|CFLAGS +=|;' \
-e '/^LDFLAGS/ s|^LDFLAGS =|LDFLAGS +=|' \
config.mk || die "sed failed"
}
src_install() {
emake PREFIX="${EPREFIX}/usr" DESTDIR="${ED}" install
dodoc "documentation"
}