--- ortp-0.13.1.ebuild 2009-02-05 12:47:43.000000000 -0500 +++ ortp-0.13.1-r1.ebuild 2009-02-05 16:53:28.000000000 -0500 @@ -2,29 +2,42 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-libs/ortp/ortp-0.13.1.ebuild,v 1.4 2008/02/12 21:39:09 vapier Exp $ -DESCRIPTION="Open Real-time Transport Protocol (RTP) stack" -HOMEPAGE="http://www.linphone.org/index.php/v2/code_review/ortp/" +EAPI="2" + +DESCRIPTION="Open Real-time Transport Protocol (RTP, RFC3550) stack" +HOMEPAGE="http://www.linphone.org/index.php/eng/code_review/ortp/" SRC_URI="http://download.savannah.nongnu.org/releases/linphone/${PN}/sources/${P}.tar.gz" -LICENSE="GPL-2" +LICENSE="LGPL-2.1" SLOT="0" KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" -IUSE="ipv6" +IUSE="debug doc ipv6" + +DEPEND="doc? ( app-doc/doxygen )" +RDEPEND="" -DEPEND="=dev-libs/glib-2* - >=dev-util/pkgconfig-0.9.0" -RDEPEND="=dev-libs/glib-2*" +src_prepare() { + # to be sure doc is not compiled nor installed with -doc and doxygen inst + if ! use doc; then + sed -i -e 's/test $DOXYGEN != //' configure \ + || die "patching configure failed" + fi +} -src_compile() { +src_configure() { + # memcheck is for HP-UX only + # mode64bit adds +DA2.0W +DS2.0 CFLAGS wich are needed for HP-UX + # strict adds -Werror, don't want it econf \ - --disable-strict \ + $(use_enable debug) \ $(use_enable ipv6) \ - || die 'configure failed' - emake || die 'make compile failed' + --disable-memcheck \ + --disable-mode64bit \ + --disable-strict \ + --docdir=/usr/share/doc/${PF} } src_install() { - emake DESTDIR="${D}" install || die "Make install failed" - dodoc README ChangeLog AUTHORS TODO NEWS - dodoc docs/*.txt + emake DESTDIR="${D}" install || die "emake install failed" + dodoc AUTHORS ChangeLog NEWS README TODO || die "dodoc failed" }