summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2017-01-27 20:49:36 -1000
committerMike Frysinger <vapier@gentoo.org>2017-01-27 20:50:35 -1000
commitd4a7512865782207325e9a5ab22b5170e9c95745 (patch)
tree9460c14aed54fcfda461e46635dd9608113ba5ad /app-text/mandoc
parentdev-ruby/msgpack: add 1.0.3 (diff)
downloadgentoo-d4a7512865782207325e9a5ab22b5170e9c95745.tar.gz
gentoo-d4a7512865782207325e9a5ab22b5170e9c95745.tar.bz2
gentoo-d4a7512865782207325e9a5ab22b5170e9c95745.zip
app-text/mandoc: initial ebuild #559926
Based on Albert Ou's work.
Diffstat (limited to 'app-text/mandoc')
-rw-r--r--app-text/mandoc/Manifest1
-rw-r--r--app-text/mandoc/mandoc-1.13.4.ebuild67
-rw-r--r--app-text/mandoc/metadata.xml7
3 files changed, 75 insertions, 0 deletions
diff --git a/app-text/mandoc/Manifest b/app-text/mandoc/Manifest
new file mode 100644
index 000000000000..36644d212b1c
--- /dev/null
+++ b/app-text/mandoc/Manifest
@@ -0,0 +1 @@
+DIST mdocml-1.13.4.tar.gz 370428 SHA256 0a55c1addb188071d6f784599303656b8465e98ec6b2f4f264e12fb96d79e0ef SHA512 1d671651ca1bb81d0de86e34de8b95a3bde5b335bda03d1b83b601e26eed167af6ef8bac6f9935603e57514f2734cd8f979ed556c76db629dd5c685892d71ec2 WHIRLPOOL cba6d6e34d59a772ef6339b91ec57d7f9b0f6b7345567445eedd230d5c7f05971b70789fe4d338e226e863c47ca9f32667ff5ff03eaa8db97add1b1346523194
diff --git a/app-text/mandoc/mandoc-1.13.4.ebuild b/app-text/mandoc/mandoc-1.13.4.ebuild
new file mode 100644
index 000000000000..38558e823879
--- /dev/null
+++ b/app-text/mandoc/mandoc-1.13.4.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+MY_PN="mdocml"
+MY_P="${MY_PN}-${PV}"
+
+inherit multilib toolchain-funcs
+
+DESCRIPTION="Suite of tools compiling mdoc and man"
+HOMEPAGE="http://mdocml.bsd.lv/"
+SRC_URI="http://mdocml.bsd.lv/snapshots/${MY_P}.tar.gz"
+
+LICENSE="ISC"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="sqlite static"
+
+LIB_DEPEND="sys-libs/zlib[static-libs(+)]
+ sqlite? ( dev-db/sqlite:3[static-libs(+)] )"
+RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs(+)]} )"
+DEPEND="${RDEPEND}
+ static? ( ${LIB_DEPEND} )"
+
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+ default
+
+ # The db-install change is to support parallel installs.
+ sed -i \
+ -e '/ar rs/s:ar:$(AR):' \
+ -e '/^db-install:/s:$: base-install:' \
+ Makefile || die
+
+ 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/mandoc"
+EXAMPLEDIR="${EPREFIX}/usr/share/examples/mandoc"
+MANPATH_DEFAULT="${EPREFIX}/usr/man:${EPREFIX}/usr/share/man:${EPREFIX}/usr/local/man:${EPREFIX}/usr/local/share/man"
+
+BINM_MAN=mman
+BINM_SOELIM=msoelim
+BINM_APROPOS=mapropos
+BINM_WHATIS=mwhatis
+BINM_MAKEWHATIS=mmakewhatis
+MANM_MAN=mandoc_man
+MANM_MDOC=mandoc_mdoc
+MANM_ROFF=mandoc_roff
+MANM_EQN=mandoc_eqn
+MANM_TBL=mandoc_tbl
+
+HAVE_SQLITE3="$(usex sqlite 1 0)"
+
+CFLAGS="${CFLAGS} ${CPPFLAGS}"
+LDFLAGS="${LDFLAGS} $(usex static -static '')"
+AR="$(tc-getAR)"
+CC="$(tc-getCC)"
+# The STATIC variable is only used by man.cgi.
+STATIC=
+EOF
+}
diff --git a/app-text/mandoc/metadata.xml b/app-text/mandoc/metadata.xml
new file mode 100644
index 000000000000..aebca33be179
--- /dev/null
+++ b/app-text/mandoc/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>base-system@gentoo.org</email>
+</maintainer>
+</pkgmetadata>