Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 315089 | Differences between
and this patch

Collapse All | Expand All

(-)capisuite.orig//capisuite-0.4.5-r6.ebuild (-12 / +12 lines)
Lines 2-7 Link Here
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/net-dialup/capisuite/capisuite-0.4.5-r6.ebuild,v 1.5 2011/04/05 05:45:46 ulm Exp $
3
# $Header: /var/cvsroot/gentoo-x86/net-dialup/capisuite/capisuite-0.4.5-r6.ebuild,v 1.5 2011/04/05 05:45:46 ulm Exp $
4
4
5
EAPI=3
6
PYTHON_DEPEND="2"
5
inherit eutils autotools flag-o-matic multilib python
7
inherit eutils autotools flag-o-matic multilib python
6
8
7
DESCRIPTION="ISDN telecommunication suite providing fax and voice services"
9
DESCRIPTION="ISDN telecommunication suite providing fax and voice services"
Lines 13-32 Link Here
13
KEYWORDS="amd64 ~ppc x86"
15
KEYWORDS="amd64 ~ppc x86"
14
IUSE=""
16
IUSE=""
15
17
16
DEPEND="dev-lang/python
18
DEPEND="media-sound/sox
17
	media-sound/sox
18
	>=media-libs/tiff-3.7.1
19
	>=media-libs/tiff-3.7.1
19
	media-gfx/jpeg2ps
20
	media-gfx/jpeg2ps
20
	media-gfx/sfftobmp
21
	media-gfx/sfftobmp
21
	app-text/ghostscript-gpl
22
	app-text/ghostscript-gpl
22
	net-dialup/capi4k-utils"
23
	net-dialup/capi4k-utils"
23
RDEPEND="${DEPEND}
24
RDEPEND="${DEPEND}	virtual/mta"
24
	virtual/mta"
25
26
src_unpack() {
27
	unpack ${A}
28
	cd "${S}"
29
25
26
src_prepare() {
30
	epatch "${FILESDIR}/${P}-as-needed.patch"
27
	epatch "${FILESDIR}/${P}-as-needed.patch"
31
28
32
	# taken from capisuite-0.4.5-5.src.rpm (SuSE-9.3)
29
	# taken from capisuite-0.4.5-5.src.rpm (SuSE-9.3)
Lines 54-76 Link Here
54
	eautoreconf
51
	eautoreconf
55
}
52
}
56
53
57
src_compile() {
54
src_configure() {
58
	strip-flags  # see bug #90901
55
	strip-flags  # see bug #90901
59
56
60
	econf --localstatedir=/var \
57
	econf --localstatedir=/var \
61
		--with-docdir="/usr/share/doc/${PF}" || die "econf failed"
58
		--with-docdir="/usr/share/doc/${PF}"
59
}
60
61
src_compile() {
62
	emake || die "emake failed"
62
	emake || die "emake failed"
63
}
63
}
64
64
65
src_install() {
65
src_install() {
66
	emake DESTDIR="${D}" install || die "install failed."
66
	emake DESTDIR="${D}" install
67
67
68
	rm -f "${D}"/usr/{lib,share}/capisuite/README
68
	rm -f "${D}"/usr/{lib,share}/capisuite/README
69
	rmdir -p --ignore-fail-on-non-empty "${D}/var/log"
69
	rmdir -p --ignore-fail-on-non-empty "${D}/var/log"
70
	rm -f "${D}/usr/share/doc/${PF}"/{COPYING,manual.pdf}
70
	rm -f "${D}/usr/share/doc/${PF}"/{COPYING,manual.pdf}
71
	keepdir /var/spool/capisuite/{done,failed,sendq,users}
71
	keepdir /var/spool/capisuite/{done,failed,sendq,users}
72
72
73
	dodir /etc/init.d
74
	newinitd "${FILESDIR}/capisuite.initd" capisuite
73
	newinitd "${FILESDIR}/capisuite.initd" capisuite
75
74
76
	insinto /etc/logrotate.d
75
	insinto /etc/logrotate.d
Lines 83-88 Link Here
83
82
84
	insinto /etc/capisuite
83
	insinto /etc/capisuite
85
	doins cronjob.conf
84
	doins cronjob.conf
85
	python_convert_shebangs 2 "${ED}"/usr/bin/capisuitefax
86
}
86
}
87
87
88
pkg_postinst() {
88
pkg_postinst() {

Return to bug 315089