steven mestdagh wrote:
hi,
msf@ pointed out that the book is included in the subversion sources,
so maybe it can just be included as a subpackage there. please review
the following patch.
Of course that is better than having a separate port - more likely to
be in sync. I can't build it right now but it looks plausible.
Thanks
ian
Index: Makefile
===================================================================
RCS file: /cvs/ports/devel/subversion/Makefile,v
retrieving revision 1.16
diff -u -r1.16 Makefile
--- Makefile 7 Jan 2006 01:10:11 -0000 1.16
+++ Makefile 7 Jan 2006 14:24:39 -0000
@@ -3,12 +3,14 @@
COMMENT= "subversion revision control system"
COMMENT-perl= "perl interface to subversion"
COMMENT-python= "python interface to subversion"
+COMMENT-book= "Version Control With Subversion 'red bean' book"
VERSION= 1.2.3
DISTNAME= subversion-${VERSION}
PKGNAME= ${DISTNAME}p1
PKGNAME-perl= p5-SVN-${VERSION}
PKGNAME-python= py-subversion-${VERSION}
+PKGNAME-book= subversion-book-${VERSION}
SHARED_LIBS= svn_client-1 0.0 \
svn_delta-1 0.0 \
svn_diff-1 0.0 \
@@ -52,9 +54,10 @@
aprutil-1.0::devel/apr-util \
expat.4::textproc/expat
-.if !${FLAVOR:L:Mno_bindings}
-MULTI_PACKAGES= -perl -python
+MULTI_PACKAGES= -book
SUBPACKAGE?=
+.if !${FLAVOR:L:Mno_bindings}
+MULTI_PACKAGES+=-perl -python
. if defined(PACKAGING) && !empty(SUBPACKAGE)
SHARED_ONLY= Yes
@@ -67,6 +70,17 @@
LIB_DEPENDS+=
svn_diff-1,svn_ra-1,svn_delta-1,svn_subr-1,svn_fs-1,svn_repos-1,svn_wc-1,svn_client-1,svn_fs_fs-1,svn_ra_svn-1,svn_ra_local-1,svn_fs_base-1,svn_ra_dav-1::devel/subversion
WANTLIB+= neon xml2 m ssl crypto
. endif
+. if ${SUBPACKAGE} == "-book"
+RUN_DEPENDS=
+LIB_DEPENDS=
+WANTLIB=
+MODULES=
+PKG_ARCH=*
+PERMIT_PACKAGE_CDROM= Copyright
+PERMIT_PACKAGE_FTP= Copyright
+PERMIT_DISTFILES_CDROM= Copyright
+PERMIT_DISTFILES_FTP= Copyright
+. endif
. endif
. if !defined(PACKAGING)
@@ -157,5 +171,8 @@
${PREFIX}/share/examples/subversion/hook-scripts/mailer
${INSTALL_DATA} ${WRKSRC}/tools/hook-scripts/mailer/tests/* \
${PREFIX}/share/examples/subversion/hook-scripts/mailer/tests
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/subversion
+ ${INSTALL_DATA} ${WRKSRC}/doc/book/svn-book.{html,pdf} \
+ ${PREFIX}/share/doc/subversion
.include <bsd.port.mk>
Index: pkg/DESCR-book
===================================================================
RCS file: pkg/DESCR-book
diff -N pkg/DESCR-book
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ pkg/DESCR-book 7 Jan 2006 14:24:39 -0000
@@ -0,0 +1,2 @@
+This is the online copy of Version Control with Subversion, a free
+book about Subversion published by O'Reilly Media.
Index: pkg/PLIST-book
===================================================================
RCS file: pkg/PLIST-book
diff -N pkg/PLIST-book
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ pkg/PLIST-book 7 Jan 2006 14:24:39 -0000
@@ -0,0 +1,4 @@
[EMAIL PROTECTED] $OpenBSD$
+share/doc/subversion/
+share/doc/subversion/svn-book.html
+share/doc/subversion/svn-book.pdf
Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm