Added IUSE=doc and install HTML docs if set; updated metadata.
authorAaron Walker <ka0ttic@gentoo.org>
Mon, 10 Jan 2005 11:13:50 +0000 (11:13 +0000)
committerAaron Walker <ka0ttic@gentoo.org>
Mon, 10 Jan 2005 11:13:50 +0000 (11:13 +0000)
net-libs/socket++/ChangeLog
net-libs/socket++/Manifest
net-libs/socket++/metadata.xml
net-libs/socket++/socket++-1.12.12.ebuild

index fdb0e2bd69884a220cfd69f57f6c344db708872d..b23c3ec2f47241acf70cca61359a694b37289eb2 100644 (file)
@@ -1,6 +1,10 @@
 # ChangeLog for net-libs/socket++
-# Copyright 2000-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-libs/socket++/ChangeLog,v 1.4 2004/12/16 09:30:28 swegener Exp $
+# Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-libs/socket++/ChangeLog,v 1.5 2005/01/10 11:13:50 ka0ttic Exp $
+
+  10 Jan 2005; Aaron Walker <ka0ttic@gentoo.org> metadata.xml,
+  socket++-1.12.12.ebuild:
+  Added IUSE=doc and install HTML docs if set; updated metadata.
 
 *socket++-1.12.12 (16 Dec 2004)
 
index 76debd2b173a42baf29e547cfdaaf74f41629b29..83bd116eda73ba1dccf2f84a271092e3874b1863 100644 (file)
@@ -1,14 +1,14 @@
 -----BEGIN PGP SIGNED MESSAGE-----
 Hash: SHA1
 
-MD5 daeb4b14cfecf1ae58af2cfd28610ef0 socket++-1.12.12.ebuild 887
-MD5 f58ad1affd0921b7a81c42edfd1e74ce ChangeLog 883
-MD5 2b3e89005c19886504e6ca523a0659f9 metadata.xml 459
+MD5 2104681a975a9137acd0b3e6ecb12b0a socket++-1.12.12.ebuild 1366
+MD5 db6fce63ef49ad6f741f153b4dde1dfb ChangeLog 1038
+MD5 bf34cf8cbb54a25fa53cd16fcbf4a2d0 metadata.xml 438
 MD5 de72f99bd9ee929dfc53cbfc508c1c24 files/digest-socket++-1.12.12 67
 -----BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.9.10 (GNU/Linux)
+Version: GnuPG v1.4.0 (GNU/Linux)
 
-iD8DBQFBwVW9I1lqEGTUzyQRAnJ7AJwJDy94R3uxxYkXNbc2qqYoLP+NWQCgkqMc
-S7ULOfgV6fCn6ivtmRGnLuU=
-=lK0u
+iD8DBQFB4mN+EZCkKN40op4RAtHjAJ9QPOg+B1k3WCGJ7u7ZuHCdzYAQCwCfdxOG
+uBX/xsGIrAZkUi0ln3qbzW4=
+=/mBo
 -----END PGP SIGNATURE-----
index 59bbda3dbbab9816f3610c0b887963fd9056ebcb..e100dc16ef57dc66c13f438b62271cce10a40986 100644 (file)
@@ -3,8 +3,8 @@
 <pkgmetadata>
        <herd>no-herd</herd>
        <maintainer>
-               <email>swegener@gentoo.org</email>
-               <description>Primary Maintainer</description>
+               <email>ka0ttic@gentoo.org</email>
+               <name>Aaron Walker</name>
        </maintainer>
        <longdescription>Socket++ library defines a family of C++ classes that can be used more effectively than directly calling the underlying low-level system functions.</longdescription>
 </pkgmetadata>
index c6c749db4ddd2c8f5463aa76159224d226df97e2..3aba5f3e992dc18a3328bc518e78ae25a268ca2a 100644 (file)
@@ -1,6 +1,6 @@
-# Copyright 1999-2004 Gentoo Foundation
+# Copyright 1999-2005 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-libs/socket++/socket++-1.12.12.ebuild,v 1.1 2004/12/16 09:30:28 swegener Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-libs/socket++/socket++-1.12.12.ebuild,v 1.2 2005/01/10 11:13:50 ka0ttic Exp $
 
 DESCRIPTION="C++ Socket Library"
 HOMEPAGE="http://www.linuxhacker.at/socketxx/"
@@ -8,7 +8,7 @@ SRC_URI="http://www.linuxhacker.at/linux/downloads/src/${P}.tar.gz"
 LICENSE="as-is"
 SLOT="0"
 KEYWORDS="~x86"
-IUSE="debug"
+IUSE="debug doc"
 
 DEPEND="=sys-devel/automake-1.7*
        =sys-devel/autoconf-2.59*
@@ -26,9 +26,27 @@ src_unpack() {
 src_compile() {
        econf $(use_enable debug) || die "econf failed"
        emake || die "emake failed"
+
+       if use doc ; then
+               cd ${S}/doc
+               einfo "Building HTML documentation"
+               # the 'html' target in both ${S}/Makefile and ${S}/doc/Makefile
+               # do indeed exist (and succeed when run manually), but fail when
+               # 'make html' is done here, so we call makeinfo ourselves.
+               makeinfo --html -I . -o html socket++.texi || die "makeinfo failed"
+       fi
+}
+
+src_test() {
+       cd ${S}/test
+       make check || die "make check failed"
 }
 
 src_install() {
        make DESTDIR=${D} install || die "install failed"
        dodoc AUTHORS ChangeLog NEWS README* THANKS || die "dodoc failed"
+
+       if use doc ; then
+               dohtml doc/html/* || die "dohtml failed"
+       fi
 }