dev-db/dbeaver-bin: bump version to 23.3.0
[gentoo-zh.git] / app-text / groff-utf8 / groff-utf8-0-r1.ebuild
blob8a39228b3d857e93cefb1c711cc32edd4397cb80
1 # Copyright 1999-2023 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
4 EAPI=8
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"
10 LICENSE="GPL-2"
11 SLOT="0"
12 KEYWORDS="amd64 x86"
14 RESTRICT="mirror"
16 DEPEND=">=sys-apps/groff-1.18.1"
18 S="${WORKDIR}/${PN}"
20 src_prepare() {
21 default
22 sed -i -e '/^CFLAGS/d' Makefile || die
23 sed -i -e '/^LDFLAGS/d' Makefile || die
24 sed -i -e '/^CPPFLAGS/d' Makefile || die
25 sed -i -e '/^CC/d' Makefile || die
28 src_install() {
29 emake install DESTDIR="${D}" PREFIX=/usr CFLAGS="${CFLAGS}" || die "make install failed"
32 pkg_postinst() {
33 sed 's/^NROFF.*\/usr\/bin\/nroff -mandoc/NROFF\t\t\/usr\/bin\/groff-utf8 -Tutf8 -c -mandoc/' -i /etc/man.conf || die
36 pkg_postrm(){
37 sed 's/groff-utf8 -Tutf8 -c -mandoc/nroff -mandoc/g' -i /etc/man.conf || die