aboutsummaryrefslogtreecommitdiff
blob: 35de192d4a07f604989c3bb5fa1025fe884720c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

# Upstream is dead.

EAPI=6

WANT_AUTOCONF="2.1"

inherit autotools eutils

DESCRIPTION="A Ghostscript based Display Postscript (DPS) server"
HOMEPAGE="http://www.gnustep.org/developers/DGS.html"
SRC_URI="ftp://ftp.gnustep.org/pub/gnustep/old/dgs/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~ppc ~sparc ~alpha ~amd64 ~hppa ~mips ~ppc64 ~ia64"
IUSE="tcpd"

RDEPEND="
	dev-libs/glib:1
	!<x11-base/xorg-x11-7"
DEPEND="${RDEPEND}
	sys-apps/texinfo
	tcpd? ( >=sys-apps/tcp-wrappers-7.6 )"

DOCS=( ANNOUNCE ChangeLog FAQ NEWS NOTES README STATUS TODO Version )

PATCHES=(
		"${FILESDIR}"/${P}-gs-time_.h-gentoo.diff \
		"${FILESDIR}"/${P}-tcpd-gentoo.diff \
		"${FILESDIR}"/${P}-gcc-3.4.diff \
		"${FILESDIR}"/${P}-fix-table-bullet.diff \
		"${FILESDIR}"/${PV}-workaround-include-in-comments.patch \
		"${FILESDIR}"/${PN}-fix-as-needed.patch
)

src_prepare() {
	default
	eautoconf
	export MAKEOPTS+=" -j1"
}

src_configure() {
	econf --with-x $(use_enable tcpd)
}

src_install() {
	default

	rm -rf "${D}"/usr/share/man/manm || die
	newman "${S}"/DPS/demos/xepsf/xepsf.man xepsf.1
	newman "${S}"/DPS/demos/dpsexec/dpsexec.man dpsexec.1
	newman "${S}"/DPS/clients/makepsres/makepsres.man makepsres.1
}