net-proxy/shadowsocks-rust: bump to 1.15.0_alpha8
[gentoo-zh.git] / app-text / groff-utf8 / groff-utf8-0-r1.ebuild
blobd7834af8df2d2b3257156272ba6063aa1db68add
1 # Copyright 1999-2021 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
4 DESCRIPTION="GNU groff wrapper allowing UTF-8 input"
5 HOMEPAGE="http://www.haible.de/bruno/packages-groff-utf8.html"
6 SRC_URI="http://www.haible.de/bruno/gnu/${PN}.tar.gz"
8 LICENSE="GPL-2"
9 SLOT="0"
10 KEYWORDS="amd64 x86"
11 IUSE=""
13 RESTRICT="mirror"
15 DEPEND=">=sys-apps/groff-1.18.1"
17 S="${WORKDIR}/${PN}"
19 src_install() {
20 emake install DESTDIR="${D}" PREFIX=/usr || die "make install failed"
23 pkg_postinst() {
24 sed 's/^NROFF.*\/usr\/bin\/nroff -mandoc/NROFF\t\t\/usr\/bin\/groff-utf8 -Tutf8 -c -mandoc/' -i /etc/man.conf
27 pkg_postrm(){
28 sed 's/groff-utf8 -Tutf8 -c -mandoc/nroff -mandoc/g' -i /etc/man.conf