Hi,

An update to one of my projects.

New stuff:
 - taglib support
 - experimental (and optional) python scripting backend in player daemon
 - autogunk build system
 - many bug fixes

Next release will focus on making the daemons act more like daemons (fork into
bg, syslog, SIGHUP etc.)

OK?

Index: Makefile
===================================================================
RCS file: /cvs/ports/audio/hgd/Makefile,v
retrieving revision 1.4
diff -u -p -r1.4 Makefile
--- Makefile    22 Apr 2011 08:21:28 -0000      1.4
+++ Makefile    26 Jun 2011 11:29:13 -0000
@@ -1,28 +1,53 @@
 # $OpenBSD: Makefile,v 1.4 2011/04/22 08:21:28 edd Exp $
 
 COMMENT =              music system for hackathons
-DISTNAME =             hgd-0.3.0
+DISTNAME =             hgd-0.4.0
 
 CATEGORIES =           audio net
 HOMEPAGE =             https://github.com/vext01/hgd/
 
 MAINTAINER =           Edd Barrett <[email protected]>
 
+FLAVORS =              python
+FLAVOR ?=
+
 # ISC
 PERMIT_PACKAGE_CDROM = Yes
 PERMIT_PACKAGE_FTP =   Yes
 PERMIT_DISTFILES_CDROM =Yes
 PERMIT_DISTFILES_FTP = Yes
 
-WANTLIB =              c config crypto ssl sqlite3
+WANTLIB =              c config crypto ssl sqlite3 tag tag_c
 
-MAKE_FILE =            BSDmakefile
 MASTER_SITES =         https://github.com/downloads/vext01/hgd/
 
+CONFIGURE_STYLE =      gnu
+CONFIGURE_ARGS =       --with-taglib \
+                       --with-libconfig
+
 RUN_DEPENDS =          x11/mplayer
 LIB_DEPENDS =          databases/sqlite3 \
-                       devel/libconfig
+                       devel/libconfig \
+                       audio/taglib
+
+.if ${FLAVOR:L:Mpython}
+LIB_DEPENDS +=         ${MODPY_LIB_DEPENDS}
+WANTLIB +=             ${MODPY_WANTLIB}
+WANTLIB +=             m pthread util
+MODULES =              lang/python
+CONFIGURE_ARGS +=      --with-python=${MODPY_VERSION}
+PKG_ARGS +=            -Dpython=1
+.else
+CONFIGURE_ARGS +=      --without-python
+PKG_ARGS +=            -Dpython=0
+.endif
 
 NO_REGRESS =           Yes
+
+# sub in correct paths
+pre-configure:
+       ${SUBST_CMD} ${WRKSRC}/pydoc/txt/hgd.doccer.txt
+       ${SUBST_CMD} ${WRKSRC}/pydoc/txt/hgd.playlist.txt
+       ${SUBST_CMD} ${WRKSRC}/pydoc/txt/index.txt
 
 .include <bsd.port.mk>
Index: distinfo
===================================================================
RCS file: /cvs/ports/audio/hgd/distinfo,v
retrieving revision 1.3
diff -u -p -r1.3 distinfo
--- distinfo    22 Apr 2011 08:21:28 -0000      1.3
+++ distinfo    26 Jun 2011 11:29:13 -0000
@@ -1,5 +1,5 @@
-MD5 (hgd-0.3.0.tar.gz) = zgpzH+4CP7Mibt0iZdiMlQ==
-RMD160 (hgd-0.3.0.tar.gz) = 2pU3MEHhDiyW0AVFU8DTW0JEO0Q=
-SHA1 (hgd-0.3.0.tar.gz) = OuqB4lY4WygXnwnLmp+RccVn0Pc=
-SHA256 (hgd-0.3.0.tar.gz) = vtoneZNKMmkNWCmOAFzRQemRmRLv9T9io/szjjLC/WA=
-SIZE (hgd-0.3.0.tar.gz) = 33574
+MD5 (hgd-0.4.0.tar.gz) = GPt0gkcPrYjtV7uHv6k8Xw==
+RMD160 (hgd-0.4.0.tar.gz) = EYEQd3OyINCIkgK2wCQOeMV0wSI=
+SHA1 (hgd-0.4.0.tar.gz) = naNShF5L8rHjcizUtdO3BqUZUag=
+SHA256 (hgd-0.4.0.tar.gz) = 4/phmlFlEWH1Rf3VLPD0Wg1ZoReFgxyALB00KYVuWCU=
+SIZE (hgd-0.4.0.tar.gz) = 232474
Index: pkg/PFRAG.python
===================================================================
RCS file: pkg/PFRAG.python
diff -N pkg/PFRAG.python
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ pkg/PFRAG.python    26 Jun 2011 11:29:13 -0000
@@ -0,0 +1,13 @@
+@comment $OpenBSD: PLIST,v 1.3 2011/04/22 08:21:28 edd Exp $
+@man man/man7/hgd-scripting.7
+share/doc/hgd/pydoc/
+share/doc/hgd/pydoc/txt/
+share/doc/hgd/pydoc/txt/hgd.doccer.txt
+share/doc/hgd/pydoc/txt/hgd.playlist.txt
+share/doc/hgd/pydoc/txt/index.txt
+share/hgd/
+share/hgd/pylib/
+share/hgd/pylib/hgd/
+share/hgd/pylib/hgd/__init__.py
+share/hgd/pylib/hgd/doccer.py
+share/hgd/pylib/hgd/playlist.py
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/audio/hgd/pkg/PLIST,v
retrieving revision 1.3
diff -u -p -r1.3 PLIST
--- pkg/PLIST   22 Apr 2011 08:21:28 -0000      1.3
+++ pkg/PLIST   26 Jun 2011 11:29:13 -0000
@@ -1,4 +1,5 @@
 @comment $OpenBSD: PLIST,v 1.3 2011/04/22 08:21:28 edd Exp $
+%%python%%
 @newgroup _hgd:665
 @newuser _hgd:665:_hgd:daemon:HGD Server:/var/empty:/sbin/nologin
 @bin bin/hgdc
@@ -6,6 +7,7 @@
 @man man/man1/hgd-netd.1
 @man man/man1/hgd-playd.1
 @man man/man1/hgdc.1
+@man man/man7/hgd-proto.7
 @bin sbin/hgd-admin
 @bin sbin/hgd-netd
 @bin sbin/hgd-playd
Index: patches/patch-pydoc_txt_hgd_doccer_txt
===================================================================
RCS file: patches/patch-pydoc_txt_hgd_doccer_txt
diff -N patches/patch-pydoc_txt_hgd_doccer_txt
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-pydoc_txt_hgd_doccer_txt      26 Jun 2011 11:29:23 -0000
@@ -0,0 +1,12 @@
+$OpenBSD$
+--- pydoc/txt/hgd.doccer.txt.orig      Sun Jun 26 12:50:33 2011
++++ pydoc/txt/hgd.doccer.txt   Sun Jun 26 12:51:43 2011
+@@ -2,7 +2,7 @@ NNAAMMEE
+     hgd.doccer - Generate Python API Docs.
+ 
+ FFIILLEE
+-    /home/edd/source/hgd/pylib/hgd/doccer.py
++    ${PREFIX}/share/hgd/pylib/hgd/doccer.py
+ 
+ DDEESSCCRRIIPPTTIIOONN
+     This class generates docs for the HGD Python API. This is non-trivial, as
Index: patches/patch-pydoc_txt_hgd_playlist_txt
===================================================================
RCS file: patches/patch-pydoc_txt_hgd_playlist_txt
diff -N patches/patch-pydoc_txt_hgd_playlist_txt
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-pydoc_txt_hgd_playlist_txt    26 Jun 2011 11:29:23 -0000
@@ -0,0 +1,12 @@
+$OpenBSD$
+--- pydoc/txt/hgd.playlist.txt.orig    Sun Jun 26 12:52:47 2011
++++ pydoc/txt/hgd.playlist.txt Sun Jun 26 12:53:16 2011
+@@ -2,7 +2,7 @@ NNAAMMEE
+     hgd.playlist - Module for working with playlist items in HGD
+ 
+ FFIILLEE
+-    /home/edd/source/hgd/pylib/hgd/playlist.py
++    ${PREFIX}/share/hgd/pylib/hgd/playlist.py
+ 
+ CCLLAASSSSEESS
+     __builtin__.object
Index: patches/patch-pydoc_txt_index_txt
===================================================================
RCS file: patches/patch-pydoc_txt_index_txt
diff -N patches/patch-pydoc_txt_index_txt
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-pydoc_txt_index_txt   26 Jun 2011 11:29:23 -0000
@@ -0,0 +1,12 @@
+$OpenBSD$
+--- pydoc/txt/index.txt.orig   Sun Jun 26 12:53:24 2011
++++ pydoc/txt/index.txt        Sun Jun 26 12:54:00 2011
+@@ -2,7 +2,7 @@ NNAAMMEE
+     hgd - Hackathon Gunther Daemon Extensions
+ 
+ FFIILLEE
+-    /home/edd/source/hgd/pylib/hgd/__init__.py
++    ${PREFIX}/share/hgd/pylib/hgd/__init__.py
+ 
+ PPAACCKKAAGGEE  CCOONNTTEENNTTSS
+     doccer

-- 
Best Regards
Edd Barrett

http://www.theunixzoo.co.uk

Reply via email to