1 # Copyright 1999-2023 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 DESCRIPTION
="GNU groff wrapper allowing UTF-8 input"
7 HOMEPAGE
="http://www.haible.de/bruno/packages-groff-utf8.html"
8 SRC_URI
="http://www.haible.de/bruno/gnu/${PN}.tar.gz -> ${P}.tar.gz"
14 DEPEND
=">=sys-apps/groff-1.18.1"
20 sed -i -e '/^CFLAGS/d' Makefile || die
21 sed -i -e '/^LDFLAGS/d' Makefile || die
22 sed -i -e '/^CPPFLAGS/d' Makefile || die
23 sed -i -e '/^CC/d' Makefile || die
27 emake
install DESTDIR
="${D}" PREFIX
=/usr CFLAGS
="${CFLAGS}" || die
"make install failed"
31 sed 's/^NROFF.*\/usr\/bin\/nroff -mandoc/NROFF\t\t\/usr\/bin\/groff-utf8 -Tutf8 -c -mandoc/' -i /etc
/man.conf || die
35 sed 's/groff-utf8 -Tutf8 -c -mandoc/nroff -mandoc/g' -i /etc
/man.conf || die