diff options
Diffstat (limited to 'net-dialup/capisuite/capisuite-0.5.0-r1.ebuild')
-rw-r--r-- | net-dialup/capisuite/capisuite-0.5.0-r1.ebuild | 94 |
1 files changed, 94 insertions, 0 deletions
diff --git a/net-dialup/capisuite/capisuite-0.5.0-r1.ebuild b/net-dialup/capisuite/capisuite-0.5.0-r1.ebuild new file mode 100644 index 0000000..adf5086 --- /dev/null +++ b/net-dialup/capisuite/capisuite-0.5.0-r1.ebuild @@ -0,0 +1,94 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $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 $ + +EAPI=3 +PYTHON_DEPEND="2" +RESTRICT_PHYTON_ABIS="3.*" + +inherit eutils autotools flag-o-matic multilib python + +DESCRIPTION="ISDN telecommunication suite providing fax and voice services" +HOMEPAGE="http://www.capisuite.de" +SRC_URI="http://www.final-frontier.org/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~ppc x86" +IUSE="" + +DEPEND="dev-lang/python + media-sound/sox + >=media-libs/tiff-3.7.1 + media-gfx/jpeg2ps + media-gfx/sfftobmp + app-text/ghostscript-gpl + net-dialup/capi4k-utils" +RDEPEND="${DEPEND} + virtual/mta" + +pkg_setup() { + python_set_active_version 2 +} + +src_unpack() { + unpack ${A} + cd "${S}" + + epatch "${FILESDIR}/${P}-as-needed.patch" + + # patched scripts/cs_helpers.pyin (bug #96540) + epatch "${FILESDIR}/${P}-date-header.patch" + + # patched src/backend/connection.cpp (bug #69522) + epatch "${FILESDIR}/${P}-fax-compatibility.patch" + + # GCC 4.3 patches (bug #236777) + epatch "${FILESDIR}/${P}-gcc43.patch" + + # Python 2.5 patches (bug #232734) + epatch "${FILESDIR}/${P}-python25.patch" + + # scripts/Makefile.am patch for newer automake + epatch "${FILESDIR}/${P}-Makefile.patch" + + # run autotools + eautoreconf +} + +src_configure() { + strip-flags # see bug #90901 + econf --localstatedir=/var \ + --with-docdir="/usr/share/doc/${PF}" || die "econf failed" +} + +src_install() { + emake DESTDIR="${D}" install || die "install failed." + + rm -f "${D}"/usr/{lib,share}/capisuite/README + rmdir -p --ignore-fail-on-non-empty "${D}/var/log" + rm -f "${D}/usr/share/doc/${PF}"/{COPYING,manual.pdf} + keepdir /var/spool/capisuite/{done,failed,sendq,users} + + dodir /etc/init.d + newinitd "${FILESDIR}/capisuite.initd" capisuite + + insinto /etc/logrotate.d + newins "${FILESDIR}/capisuite.logrotated" capisuite + + dodoc AUTHORS ChangeLog NEWS README TODO + + exeinto /etc/cron.daily + doexe capisuite.cron + + insinto /etc/capisuite + doins cronjob.conf +} + +pkg_postinst() { + python_mod_optimize cs_helpers.py +} + +pkg_postrm() { + python_mod_cleanup cs_helpers.py +} |