Re: doxygen module

2012-04-02 Thread Landry Breuil
On Sun, Apr 01, 2012 at 10:46:38PM +0100, Stuart Henderson wrote:
 The doxygen port has a note tucked away at the bottom of a very
 long DESCR telling you to set DOXYGEN_ENCODE_PATH_STRIP=${WRKSRC}
 to avoid random-looking html filenames (based on md5 of the full
 path including the port's work directory).

I've seen that issue on textproc/ebook-tools on one machine, and it
already has that statement in MAKE_ENV and i've not been able to
reproduce on any other build machine, amd64 or not.

Error:
/usr/obj/ports//ebook-tools-0.2.1/fake-amd64/usr/local/share/doc/ebook-tools/html/dir_1aadfcc6ce99810c4f28b3e40bd89d10.html
does not exist
Error:
/usr/obj/ports//ebook-tools-0.2.1/fake-amd64/usr/local/share/doc/ebook-tools/html/dir_bb3a45700f8b636266dda7e86f379deb.html
does not exist

Landry



doxygen module

2012-04-01 Thread Stuart Henderson
The doxygen port has a note tucked away at the bottom of a very
long DESCR telling you to set DOXYGEN_ENCODE_PATH_STRIP=${WRKSRC}
to avoid random-looking html filenames (based on md5 of the full
path including the port's work directory).

It only affects ports with the random-looking filenames but
doesn't harm other doxygen users so I think it makes sense to add
a MODULE to set it.

How does this look? Is it sane to use this BUILD_DEPENDS?

Index: devel/doxygen/doxygen.port.mk
===
RCS file: devel/doxygen/doxygen.port.mk
diff -N devel/doxygen/doxygen.port.mk
--- /dev/null   1 Jan 1970 00:00:00 -
+++ devel/doxygen/doxygen.port.mk   1 Apr 2012 21:34:18 -
@@ -0,0 +1,4 @@
+# $OpenBSD$
+
+BUILD_DEPENDS += devel/doxygen,no_gui,bootstrap=1.7.2
+MAKE_ENV += DOXYGEN_ENCODE_PATH_STRIP=${WRKSRC}
Index: devel/simulavr/Makefile
===
RCS file: /cvs/ports/devel/simulavr/Makefile,v
retrieving revision 1.5
diff -u -p -r1.5 Makefile
--- devel/simulavr/Makefile 15 Nov 2011 18:55:30 -  1.5
+++ devel/simulavr/Makefile 1 Apr 2012 21:34:18 -
@@ -24,8 +24,8 @@ CONFIGURE_ARGS+=  --enable-curses=yes \
 
 USE_GMAKE= Yes
 
+MODULES=   devel/doxygen
 BUILD_DEPENDS= ${RUN_DEPENDS} \
-   devel/doxygen \
textproc/texi2html \
print/texlive/base
 RUN_DEPENDS=   devel/avr/binutils \
Index: graphics/opencv/Makefile
===
RCS file: /cvs/ports/graphics/opencv/Makefile,v
retrieving revision 1.11
diff -u -p -r1.11 Makefile
--- graphics/opencv/Makefile5 Dec 2011 09:36:32 -   1.11
+++ graphics/opencv/Makefile1 Apr 2012 21:34:18 -
@@ -75,8 +75,8 @@ USE_LIBTOOL=  Yes
 VMEM_WARNING=  Yes
 
 RUN_DEPENDS-main=  math/py-numpy
-BUILD_DEPENDS= devel/doxygen \
-   math/py-numpy
+MODULES=   devel/doxygen
+BUILD_DEPENDS= math/py-numpy
 
 # ATM opencv requires V4L1 compat, ask them to change it,
 # then see WITH_V4L below.
Index: multimedia/gstreamer-0.10/mm/Makefile
===
RCS file: /cvs/ports/multimedia/gstreamer-0.10/mm/Makefile,v
retrieving revision 1.11
diff -u -p -r1.11 Makefile
--- multimedia/gstreamer-0.10/mm/Makefile   20 Feb 2012 07:59:09 -  
1.11
+++ multimedia/gstreamer-0.10/mm/Makefile   1 Apr 2012 21:34:18 -
@@ -21,11 +21,8 @@ WANTLIB += xml2 z
 
 MASTER_SITES = 
${MASTER_SITE_GNOME:=sources/${NAME}/${V:C/^([0-9]+\.[0-9]+).*/\1/}/}
 
-MODULES =  devel/gettext
+MODULES =  devel/gettext devel/doxygen
 
-MODPY_RUNDEP = No
-
-BUILD_DEPENDS =devel/doxygen
 LIB_DEPENDS =  devel/glib2mm \
multimedia/gstreamer-0.10/plugins-base,-cdda \
textproc/libxml++
Index: geo/geos/Makefile
===
RCS file: /cvs/ports/geo/geos/Makefile,v
retrieving revision 1.7
diff -u -p -r1.7 Makefile
--- geo/geos/Makefile   17 Nov 2010 08:05:12 -  1.7
+++ geo/geos/Makefile   1 Apr 2012 21:34:18 -
@@ -21,7 +21,7 @@ MASTER_SITES= http://download.osgeo.org
 EXTRACT_SUFX=  .tar.bz2
 
 WANTLIB=   m stdc++
-BUILD_DEPENDS= devel/doxygen=1.7.2
+MODULES=   devel/doxygen
 
 USE_GMAKE= Yes
 USE_LIBTOOL=   Yes
Index: graphics/lensfun/Makefile
===
RCS file: /cvs/ports/graphics/lensfun/Makefile,v
retrieving revision 1.7
diff -u -p -r1.7 Makefile
--- graphics/lensfun/Makefile   16 Sep 2011 10:02:37 -  1.7
+++ graphics/lensfun/Makefile   1 Apr 2012 21:34:18 -
@@ -19,10 +19,8 @@ WANTLIB += c glib-2.0 m png stdc++ z
 MASTER_SITES=  ${MASTER_SITE_BERLIOS:=lensfun/}
 EXTRACT_SUFX=  .tar.bz2
 
-MODULES=   lang/python devel/gettext
+MODULES=   lang/python devel/doxygen devel/gettext
 MODPY_RUNDEP=  No
-BUILD_DEPENDS= devel/doxygen=1.7.2
-
 LIB_DEPENDS=   devel/glib2 \
graphics/png
 
Index: x11/awesome/Makefile
===
RCS file: /cvs/ports/x11/awesome/Makefile,v
retrieving revision 1.45
diff -u -p -r1.45 Makefile
--- x11/awesome/Makefile18 Feb 2012 11:24:44 -  1.45
+++ x11/awesome/Makefile1 Apr 2012 21:34:18 -
@@ -45,13 +45,13 @@ BUILD_DEPENDS=  devel/gperf \
textproc/asciidoc=8.4.5 \
textproc/xmlto \
graphics/ImageMagick \
-   devel/doxygen
 
 RUN_DEPENDS=   graphics/feh \
misc/rlwrap \
shells/bash
 
 MODULES=   devel/cmake \
+