summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorryoon <ryoon>2013-01-30 11:34:58 +0000
committerryoon <ryoon>2013-01-30 11:34:58 +0000
commit96a1ad943113069ca72d758f7c7eec67513e42c0 (patch)
treee42cc616e67937fa6c208e7c42a074b80ac47d6d /devel
parentea6a7b6c12f2fbb7cf29b73ed3f0aa41b01bdf1f (diff)
downloadpkgsrc-96a1ad943113069ca72d758f7c7eec67513e42c0.tar.gz
Fix PR pkg/47363.
Import 3.2 version of cvsps as devel/cvsps3. From README, The 3.x versions have changed significantly. In 2012, CVS use is declining swiftly (GNU CVS hasn't been updated since 2004) and the original use case for this tool - browsing change sets in a live CVS repository - is obsolete. The 3.x versions are more focused on the --fast-export mode.
Diffstat (limited to 'devel')
-rw-r--r--devel/cvsps3/DESCR7
-rw-r--r--devel/cvsps3/Makefile25
-rw-r--r--devel/cvsps3/PLIST3
-rw-r--r--devel/cvsps3/distinfo6
-rw-r--r--devel/cvsps3/patches/patch-aa37
5 files changed, 78 insertions, 0 deletions
diff --git a/devel/cvsps3/DESCR b/devel/cvsps3/DESCR
new file mode 100644
index 00000000000..e7007318eff
--- /dev/null
+++ b/devel/cvsps3/DESCR
@@ -0,0 +1,7 @@
+CVSps is a program for generating 'patchset' information from a
+CVS repository. A patchset in this case is defined as a set of
+changes made to a collection of files, and all committed at the
+same time (using a single 'cvs commit' command). This information
+is valuable to seeing the big picture of the evolution of a cvs
+project. While cvs tracks revision information, it is often difficult
+to see what changes were committed 'atomically' to the repository.
diff --git a/devel/cvsps3/Makefile b/devel/cvsps3/Makefile
new file mode 100644
index 00000000000..2f61726675b
--- /dev/null
+++ b/devel/cvsps3/Makefile
@@ -0,0 +1,25 @@
+# $NetBSD: Makefile,v 1.1 2013/01/30 11:34:58 ryoon Exp $
+#
+
+DISTNAME= cvsps-3.2
+PKGNAME= ${DISTNAME:S/cvsps-/cvsps3-/}
+CATEGORIES= devel scm
+MASTER_SITES= ${HOMEPAGE:Q}
+
+MAINTAINER= schmonz@NetBSD.org
+HOMEPAGE= http://www.catb.org/~esr/cvsps/
+COMMENT= Generates 'patchset' information from a CVS repository
+LICENSE= gnu-gpl-v2
+
+PKG_INSTALLATION_TYPES= overwrite pkgviews
+
+USE_TOOLS+= gmake
+
+INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
+
+LIBS.SunOS+= -lnsl -lsocket
+MAKE_ENV+= LIBS=${LIBS:Q}
+MAKE_ENV+= prefix=${DESTDIR}${PREFIX}
+
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/cvsps3/PLIST b/devel/cvsps3/PLIST
new file mode 100644
index 00000000000..694bae0b736
--- /dev/null
+++ b/devel/cvsps3/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1 2013/01/30 11:34:58 ryoon Exp $
+bin/cvsps3
+man/man1/cvsps3.1
diff --git a/devel/cvsps3/distinfo b/devel/cvsps3/distinfo
new file mode 100644
index 00000000000..c0e97e86682
--- /dev/null
+++ b/devel/cvsps3/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2013/01/30 11:34:58 ryoon Exp $
+
+SHA1 (cvsps-3.2.tar.gz) = fd4a3d3a0dc630381456d4fcc06fe72c6ca60689
+RMD160 (cvsps-3.2.tar.gz) = af75060a260e74919802b651c76ccb33fa07e240
+Size (cvsps-3.2.tar.gz) = 60627 bytes
+SHA1 (patch-aa) = 976b74f3183c0ef41799a62909cf66ff41ee6048
diff --git a/devel/cvsps3/patches/patch-aa b/devel/cvsps3/patches/patch-aa
new file mode 100644
index 00000000000..6ef3e9d465e
--- /dev/null
+++ b/devel/cvsps3/patches/patch-aa
@@ -0,0 +1,37 @@
+$NetBSD: patch-aa,v 1.1 2013/01/30 11:34:58 ryoon Exp $
+
+* Pass pkgsrc environment variables
+
+--- Makefile.orig 2012-12-24 20:12:10.000000000 +0000
++++ Makefile
+@@ -3,7 +3,7 @@ VERSION=3.2
+ CC?=gcc
+ CFLAGS?=-g -O2 -Wall
+ CPPFLAGS+=-I. -DVERSION=\"$(VERSION)\"
+-prefix?=/usr/local
++prefix?=${PREFIX}
+ OBJS=\
+ cbtcommon/debug.o\
+ cbtcommon/hash.o\
+@@ -22,7 +22,7 @@ deps:
+ makedepend -Y -I. *.c cbtcommon/*.c
+
+ cvsps: $(OBJS)
+- $(CC) -o cvsps $(OBJS) -lz
++ $(CC) ${LDFLAGS} -o cvsps3 $(OBJS) -lz ${LIBS}
+
+ check:
+ @(cd test >/dev/null; make --quiet)
+@@ -38,9 +38,9 @@ cvsps.html: cvsps.asc
+
+ install: cvsps.1
+ [ -d $(prefix)/bin ] || mkdir -p $(prefix)/bin
+- [ -d $(prefix)/share/man/man1 ] || mkdir -p $(prefix)/share/man/man1
+- install cvsps $(prefix)/bin
+- install -m 644 cvsps.1 $(prefix)/share/man/man1
++ [ -d $(prefix)/${PKGMANDIR}/man1 ] || mkdir -p $(prefix)/${PKGMANDIR}/man1
++ install cvsps3 $(prefix)/bin
++ install -m 644 cvsps.1 $(prefix)/${PKGMANDIR}/man1/cvsps3.1
+
+ tags: *.c *.h cbtcommon/*.c cbtcommon/*.h
+ ctags *.c *.h cbtcommon/*.c cbtcommon/*.h