Revbump for Prefix patches, transferred Prefix keywords, bug #307939
authorFabian Groffen <grobian@gentoo.org>
Sat, 6 Mar 2010 16:25:25 +0000 (16:25 +0000)
committerFabian Groffen <grobian@gentoo.org>
Sat, 6 Mar 2010 16:25:25 +0000 (16:25 +0000)
Package-Manager: portage-2.2.00.15738-prefix/cvs/Darwin powerpc

dev-util/cvsps/ChangeLog
dev-util/cvsps/Manifest
dev-util/cvsps/cvsps-2.1-r1.ebuild [new file with mode: 0644]
dev-util/cvsps/files/cvsps-2.1-solaris.patch [new file with mode: 0644]

index 4515c12251371ad40e6fedb71dcfe139b8dff615..c478945925985dd739aad5f0c98184418082a91b 100644 (file)
@@ -1,6 +1,12 @@
 # ChangeLog for dev-util/cvsps
-# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/cvsps/ChangeLog,v 1.26 2008/06/10 18:17:10 armin76 Exp $
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/cvsps/ChangeLog,v 1.27 2010/03/06 16:25:24 grobian Exp $
+
+*cvsps-2.1-r1 (06 Mar 2010)
+
+  06 Mar 2010; Fabian Groffen <grobian@gentoo.org> +cvsps-2.1-r1.ebuild,
+  +files/cvsps-2.1-solaris.patch:
+  Revbump for Prefix patches, transferred Prefix keywords, bug #307939
 
   10 Jun 2008; Raúl Porcel <armin76@gentoo.org> cvsps-2.1.ebuild:
   ia64 stable
index 638b2254055295157c64c9f6f058c13dd7a28360..c16da8de89d442387868294f220151fb3e60a79e 100644 (file)
@@ -1,5 +1,7 @@
 AUX cvsps-2.1-build.patch 396 RMD160 68ac72117765974f430bccca841fa56ccd54119e SHA1 2ce5813a20f42d09288d45d80f2604836bea98d0 SHA256 77f31e3e4cbd223a69f0a8be0bec568520eb821bd0ffea5fae64d918adda298d
+AUX cvsps-2.1-solaris.patch 3064 RMD160 9ac271d1eca271a3425b11992074a74baaab1326 SHA1 fb42b1c9698534db23f6a045ce2ff7d098591743 SHA256 1df81614d4be5f269aea11fc2238c8835f7b8736f42fccd263e12c92aeb129f2
 DIST cvsps-2.1.tar.gz 61634 RMD160 a3063f638fbf1136761549658432d5842e4a766f SHA1 a53a62b121e7b86e07a393bcb8aa4f0492a747c4 SHA256 91d3198b33463861a581686d5fcf99a5c484e7c4d819384c04fda9cafec1075a
+EBUILD cvsps-2.1-r1.ebuild 1003 RMD160 fa40344904637f6df14f740d5b0427b4a1ca2c26 SHA1 8a5dc1e99781237f62e79187e77bf3a1f0292cab SHA256 3d3fc49d5fd9a01d9909d46984ae16c34259e4bd68eca77c06d5d5ba6b9398aa
 EBUILD cvsps-2.1.ebuild 740 RMD160 f3e881710fabab02138cb39d4e7fac27f4868f2f SHA1 49da32a35ae37cece05d353067129707846ed97a SHA256 adc6eded4e3fe74870c191d637c5987088667e79835a88fc062dd982563e4e96
-MISC ChangeLog 2724 RMD160 eac012a9417fb6dadd1fe75a1561556384b3de32 SHA1 5b2c1283032fd1526a4f0214fd9da0741853badb SHA256 d1de110822000466086a3d480bf83c0cefa6ac78a620dd6b184ac2f40a753eba
+MISC ChangeLog 2932 RMD160 810a6e5b9701cb25d387762d3484d542964cca43 SHA1 44504047176bc3aeed41b92ff9715d652cf6435d SHA256 058dc88ada9a8acd5a80070a6e3245a4417b6e43507df24705386f036844b7aa
 MISC metadata.xml 163 RMD160 5775541e171dcb041b2a0d9c3dc6ec111fed5448 SHA1 0adf2ecc691365675aa625eaefd31a8420c9c470 SHA256 f9b2c117db0e347d23449cfe541b43a645d682d03043e9c822571bbecff71eb9
diff --git a/dev-util/cvsps/cvsps-2.1-r1.ebuild b/dev-util/cvsps/cvsps-2.1-r1.ebuild
new file mode 100644 (file)
index 0000000..1798243
--- /dev/null
@@ -0,0 +1,36 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/cvsps/cvsps-2.1-r1.ebuild,v 1.1 2010/03/06 16:25:24 grobian Exp $
+
+inherit eutils
+
+MY_P="${P/_/}"
+DESCRIPTION="Generates patchset information from a CVS repository"
+HOMEPAGE="http://www.cobite.com/cvsps/"
+SRC_URI="http://www.cobite.com/cvsps/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x64-solaris ~x86-solaris"
+IUSE=""
+
+DEPEND="sys-libs/zlib"
+
+S="${WORKDIR}/${MY_P}"
+
+src_unpack() {
+       unpack ${A}
+       cd "${S}"
+       epatch "${FILESDIR}"/${P}-build.patch
+       epatch "${FILESDIR}"/${P}-solaris.patch
+       # no configure around
+       if [[ ${CHOST} == *-solaris* ]] ; then
+               sed -i -e '/^LDLIBS+=/s/$/ -lsocket/' Makefile || die
+       fi
+}
+
+src_install() {
+       dobin cvsps || die
+       doman cvsps.1
+       dodoc README CHANGELOG
+}
diff --git a/dev-util/cvsps/files/cvsps-2.1-solaris.patch b/dev-util/cvsps/files/cvsps-2.1-solaris.patch
new file mode 100644 (file)
index 0000000..3e063fd
--- /dev/null
@@ -0,0 +1,131 @@
+Modified version of 
+http://cvs.openpkg.org/fileview?f=openpkg-src/cvsps/cvsps.patch&v=1.13
+
+Index: cache.c
+--- cache.c.orig       2008-04-02 03:18:44 +0200
++++ cache.c    2008-04-02 09:10:25 +0200
+@@ -361,7 +361,7 @@
+ 
+     strcpy(buff, p_buff);
+ 
+-    while ((s = strsep(&p, ";")))
++    while ((s = my_strsep(&p, ";")))
+     {
+       char * c = strchr(s, ':');
+ 
+Index: cvs_direct.c
+--- cvs_direct.c.orig  2008-04-02 03:18:44 +0200
++++ cvs_direct.c       2008-04-02 09:10:25 +0200
+@@ -92,12 +92,12 @@
+ 
+     strcpy_a(root, p_root, PATH_MAX);
+ 
+-    tok = strsep(&p, ":");
++    tok = my_strsep(&p, ":");
+ 
+     /* if root string looks like :pserver:... then the first token will be empty */
+     if (strlen(tok) == 0)
+     {
+-      char * method = strsep(&p, ":");
++      char * method = my_strsep(&p, ":");
+       if (strcmp(method, "pserver") == 0)
+       {
+           ctx = open_ctx_pserver(ctx, p);
+@@ -185,14 +185,14 @@
+ 
+     strcpy_a(root, p_root, PATH_MAX);
+ 
+-    tok = strsep(&p, ":");
++    tok = my_strsep(&p, ":");
+     if (strlen(tok) == 0 || !p)
+     {
+       debug(DEBUG_APPERROR, "parse error on third token");
+       goto out_free_err;
+     }
+ 
+-    tok2 = strsep(&tok, "@");
++    tok2 = my_strsep(&tok, "@");
+     if (!strlen(tok2) || (!tok || !strlen(tok)))
+     {
+       debug(DEBUG_APPERROR, "parse error on user@server in pserver");
+@@ -272,7 +272,7 @@
+     strcpy_a(root, p_root, PATH_MAX);
+ 
+     /* if there's a ':', it's remote */
+-    tok = strsep(&p, ":");
++    tok = my_strsep(&p, ":");
+ 
+     if (p)
+     {
+@@ -281,7 +281,7 @@
+       if (!cvs_rsh)
+           cvs_rsh = "rsh";
+ 
+-      tok2 = strsep(&tok, "@");
++      tok2 = my_strsep(&tok, "@");
+ 
+       if (tok)
+           snprintf(execcmd, PATH_MAX, "%s -l %s %s %s server", cvs_rsh, tok2, tok, cvs_server);
+@@ -776,7 +776,7 @@
+ static int parse_patch_arg(char * arg, char ** str)
+ {
+     char *tok, *tok2 = "";
+-    tok = strsep(str, " ");
++    tok = my_strsep(str, " ");
+     if (!tok)
+       return 0;
+ 
+@@ -796,7 +796,7 @@
+     /* see if command wants two args and they're separated by ' ' */
+     if (tok[2] == 0 && strchr("BdDFgiorVxYz", tok[1]))
+     {
+-      tok2 = strsep(str, " ");
++      tok2 = my_strsep(str, " ");
+       if (!tok2)
+       {
+           debug(DEBUG_APPERROR, "diff_opts parse_error: argument %s requires two arguments", tok);
+Index: util.c
+--- util.c.orig        2008-04-02 03:18:44 +0200
++++ util.c     2008-04-02 09:10:25 +0200
+@@ -316,3 +316,31 @@
+       exit(1);
+     }
+ }
++
++char *my_strsep(char **stringp, const char *delim)
++{
++      char *s;
++      const char *spanp;
++      int c, sc;
++      char *tok;
++
++      if ((s = *stringp) == NULL)
++              return NULL;
++      for (tok = s;;) {
++              c = *s++;
++              spanp = delim;
++              do {
++                      if ((sc = *spanp++) == c) {
++                              if (c == 0)
++                                      s = NULL;
++                              else
++                                      s[-1] = 0;
++                              *stringp = s;
++                              return tok;
++                      }
++              } while (sc != 0);
++      }
++      /* NOTREACHED */
++    return NULL;
++}
++
+Index: util.h
+--- util.h.orig        2008-04-02 03:18:44 +0200
++++ util.h     2008-04-02 09:15:35 +0200
+@@ -24,5 +24,6 @@
+ void timing_stop(const char *);
+ int my_system(const char *);
+ int escape_filename(char *, int, const char *);
++char *my_strsep(char **, const char *);
+ 
+ #endif /* UTIL_H */