--- /usr/portage/net-analyzer/net-snmp/net-snmp-5.2-r2.ebuild 2005-01-28 17:40:27.000000000 +0100 +++ net-analyzer/net-snmp/net-snmp-5.2-r2.ebuild 2005-01-29 12:07:15.916221456 +0100 @@ -11,7 +11,7 @@ LICENSE="as-is" SLOT="0" KEYWORDS="~x86 ~ppc ~sparc ~alpha ~arm ~hppa ~amd64 ~ia64 ~s390 ~ppc64 ~mips" -IUSE="perl ipv6 ssl tcpd X lm_sensors minimal smux selinux" +IUSE="perl ipv6 ssl tcpd X lm_sensors minimal smux selinux doc" PROVIDE="virtual/snmp" DEPEND="virtual/libc @@ -90,6 +90,10 @@ if use perl ; then emake perlmodules || die "compile perl modules problem" fi + + if use doc ; then + emake docsdox + fi } src_install () { @@ -104,6 +108,11 @@ rm -f "${D}/usr/bin/mib2c" "${D}/usr/bin/tkmib" fi + if use doc ; then + cd ${S}/docs + dohtml -r html + fi + dodoc AGENT.txt ChangeLog FAQ INSTALL NEWS PORTING README* TODO newdoc EXAMPLE.conf.def EXAMPLE.conf