mandoc-1.14.4.ebuild (1454B)
1 # Copyright 1999-2018 Gentoo Foundation 2 # Distributed under the terms of the GNU General Public License v2 3 4 EAPI="6" 5 6 inherit multilib toolchain-funcs 7 8 DESCRIPTION="Suite of tools compiling mdoc and man" 9 HOMEPAGE="http://mdocml.bsd.lv/" 10 SRC_URI="http://mdocml.bsd.lv/snapshots/${P}.tar.gz" 11 12 LICENSE="ISC" 13 SLOT="0" 14 KEYWORDS="~amd64 ~x86" 15 IUSE="static" 16 17 LIB_DEPEND="sys-libs/zlib[static-libs(+)]" 18 RDEPEND=" 19 !static? ( ${LIB_DEPEND//\[static-libs(+)]} ) 20 !sys-apps/man-db 21 !sys-apps/man 22 " 23 DEPEND="${RDEPEND} 24 static? ( ${LIB_DEPEND} )" 25 26 src_prepare() { 27 default 28 29 # The db-install change is to support parallel installs. 30 sed -i \ 31 -e '/ar rs/s:ar:$(AR):' \ 32 -e '/^db-install:/s:$: base-install:' \ 33 Makefile || die 34 35 cat <<-EOF > "configure.local" 36 PREFIX="${EPREFIX}/usr" 37 BINDIR="${EPREFIX}/usr/bin" 38 SBINDIR="${EPREFIX}/usr/sbin" 39 LIBDIR="${EPREFIX}/usr/$(get_libdir)" 40 MANDIR="${EPREFIX}/usr/share/man" 41 INCLUDEDIR="${EPREFIX}/usr/include/mandoc" 42 EXAMPLEDIR="${EPREFIX}/usr/share/examples/mandoc" 43 MANPATH_DEFAULT="${EPREFIX}/usr/man:${EPREFIX}/usr/share/man:${EPREFIX}/usr/local/man:${EPREFIX}/usr/local/share/man" 44 45 MANM_MAN=mandoc_man 46 MANM_MDOC=mandoc_mdoc 47 MANM_ROFF=mandoc_roff 48 MANM_EQN=mandoc_eqn 49 MANM_TBL=mandoc_tbl 50 BINM_SOELIM=msoelim 51 CFLAGS="${CFLAGS} ${CPPFLAGS}" 52 LDFLAGS="${LDFLAGS} $(usex static -static '')" 53 AR="$(tc-getAR)" 54 CC="$(tc-getCC)" 55 # The STATIC variable is only used by man.cgi. 56 STATIC= 57 EOF 58 }