aboutsummaryrefslogtreecommitdiffstats
path: root/devel/gcvs
diff options
context:
space:
mode:
authorbeech <beech@FreeBSD.org>2012-12-12 05:49:33 +0800
committerbeech <beech@FreeBSD.org>2012-12-12 05:49:33 +0800
commit731895cbb3d79f66a55330ea434f77ebbb05e5cc (patch)
tree665a50be429d8e14c354a304cda397d14932ac0a /devel/gcvs
parent9f0ed2ca3deded5b0f5b0d2c10d68646bf67c650 (diff)
downloadfreebsd-ports-gnome-731895cbb3d79f66a55330ea434f77ebbb05e5cc.tar.gz
freebsd-ports-gnome-731895cbb3d79f66a55330ea434f77ebbb05e5cc.tar.zst
freebsd-ports-gnome-731895cbb3d79f66a55330ea434f77ebbb05e5cc.zip
- Fix build with clang
- Add LICENSE - Support MANPREFIX PR: ports/174163 Submitted by: KATO Tsuguru <tkato432@yahoo.com>
Diffstat (limited to 'devel/gcvs')
-rw-r--r--devel/gcvs/Makefile35
-rw-r--r--devel/gcvs/distinfo1
-rw-r--r--devel/gcvs/files/patch-common__UCvsConsole.cpp19
-rw-r--r--devel/gcvs/files/patch-cvstree__CvsLog.h14
-rw-r--r--devel/gcvs/files/patch-cvstree__main.cpp12
-rw-r--r--devel/gcvs/files/patch-cvsunix-configure.in3
-rw-r--r--devel/gcvs/files/patch-cvsunix-lib-Makefile.in19
-rw-r--r--devel/gcvs/files/patch-make_configure19
-rw-r--r--devel/gcvs/files/patch-rf_uwidget.cpp30
-rw-r--r--devel/gcvs/pkg-plist6
10 files changed, 107 insertions, 51 deletions
diff --git a/devel/gcvs/Makefile b/devel/gcvs/Makefile
index 544381c7ab0c..eb41ee057bc3 100644
--- a/devel/gcvs/Makefile
+++ b/devel/gcvs/Makefile
@@ -3,7 +3,7 @@
PORTNAME= gcvs
PORTVERSION= 1.0
-PORTREVISION= 12
+PORTREVISION= 13
PORTEPOCH= 1
CATEGORIES= devel tk
MASTER_SITES= SF/cvsgui/gCvs/${PORTNAME}-${PORTVERSION}
@@ -11,28 +11,29 @@ MASTER_SITES= SF/cvsgui/gCvs/${PORTNAME}-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= High-end interface client for CVS
-BUILD_DEPENDS+= wish8.4:${PORTSDIR}/x11-toolkits/tk84
-RUN_DEPENDS+= wish8.4:${PORTSDIR}/x11-toolkits/tk84
+LICENSE= GPLv2
USE_GNOME= gtk12
-GNU_CONFIGURE= yes
+USE_TCL_BUILD= yes
+USE_TCL_WRAPPER=yes
+USE_TK_WRAPPER= yes
USE_GMAKE= yes
-BREAKS_IF_PEDANTIC= yes
-CONFIGURE_ARGS+= --with-tclinclude=${LOCALBASE}/include/tcl8.4
-CONFIGURE_ARGS+= --with-tcllib=${LOCALBASE}/lib/tcl8.4
-CONFIGURE_SCRIPT= make_configure
+USE_AUTOTOOLS= aclocal autoheader automake autoconf
+ACLOCAL_ARGS= -I ${LOCALBASE}/share/aclocal
+AUTOMAKE_ARGS= --add-missing --force --copy --gnu
+GNU_CONFIGURE= yes
+CONFIGURE_ENV= CXXFLAGS="${CXXFLAGS:N-std=*:N:}"
+CONFIGURE_ARGS= --with-tclinclude=${TCL_INCLUDEDIR} \
+ --with-tcllib=${TCL_LIBDIR}
+MAKE_JOBS_SAFE= yes
+
MAN1= cvs.1
MAN5= cvs.5
MAN8= cvsbug.8
INFO= cvs cvsclient
-USE_AUTOTOOLS= automake14:env autoconf:env
-MAKE_JOBS_UNSAFE= yes
-AUTOTOOLSFILES= make_configure
-
-.include <bsd.port.pre.mk>
-.if ${OSVERSION} >= 800037
-BROKEN= does not compile
-.endif
+pre-configure:
+ @(cd ${WRKSRC}/cvsunix && ${SETENV} ${AUTOTOOLS_ENV} ${AUTOCONF} \
+ ${AUTOCONF_ARGS})
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/devel/gcvs/distinfo b/devel/gcvs/distinfo
index 4e2925767b96..00ae1d38c3bf 100644
--- a/devel/gcvs/distinfo
+++ b/devel/gcvs/distinfo
@@ -1,2 +1,3 @@
+MD5 (gcvs-1.0.tar.gz) = 42eff200593eabfbef3a7e9157d76999
SHA256 (gcvs-1.0.tar.gz) = 0cac671c9d90f4a8902f1b6327605ac851a3aa058021310f4ba7ab5a047b13bf
SIZE (gcvs-1.0.tar.gz) = 2917708
diff --git a/devel/gcvs/files/patch-common__UCvsConsole.cpp b/devel/gcvs/files/patch-common__UCvsConsole.cpp
new file mode 100644
index 000000000000..9218a8228a34
--- /dev/null
+++ b/devel/gcvs/files/patch-common__UCvsConsole.cpp
@@ -0,0 +1,19 @@
+--- common/UCvsConsole.cpp.orig 2000-06-06 14:48:24.000000000 +0900
++++ common/UCvsConsole.cpp 2012-11-06 16:16:19.000000000 +0900
+@@ -22,6 +22,7 @@
+ *
+ */
+
++#include <cstdlib>
+ #include "stdafx.h"
+
+ #if qGTK
+@@ -230,7 +231,7 @@
+ nEndChar = w.selection_end_pos;
+ }
+
+- guint long length = nEndChar - nStartChar;
++ gulong length = nEndChar - nStartChar;
+ if(length > 0 && nStartChar < len)
+ {
+ char *buf = (char *)malloc((length + 1) * sizeof(char));
diff --git a/devel/gcvs/files/patch-cvstree__CvsLog.h b/devel/gcvs/files/patch-cvstree__CvsLog.h
new file mode 100644
index 000000000000..55fe8f0dc540
--- /dev/null
+++ b/devel/gcvs/files/patch-cvstree__CvsLog.h
@@ -0,0 +1,14 @@
+--- cvstree/CvsLog.h.orig 2002-06-16 02:49:37.000000000 +0900
++++ cvstree/CvsLog.h 2012-11-06 16:19:38.000000000 +0900
+@@ -26,8 +26,9 @@
+ #endif /* WIN32 */
+
+ #include <vector>
+-#include <time.h>
+-#include <stdio.h>
++#include <ctime>
++#include <cstdio>
++#include <cstring>
+
+ #if defined(_MSC_VER) && _MSC_VER < 0x514 // VC7
+ # include <iostream.h>
diff --git a/devel/gcvs/files/patch-cvstree__main.cpp b/devel/gcvs/files/patch-cvstree__main.cpp
new file mode 100644
index 000000000000..eb0f96c5d9ca
--- /dev/null
+++ b/devel/gcvs/files/patch-cvstree__main.cpp
@@ -0,0 +1,12 @@
+--- cvstree/main.cpp.orig 2002-07-10 22:43:47.000000000 +0900
++++ cvstree/main.cpp 2012-11-06 16:21:19.000000000 +0900
+@@ -1,6 +1,7 @@
+-#include <stdio.h>
++#include <cstdio>
+ #include "getopt.h"
+-#include <errno.h>
++#include <cerrno>
++#include <cstdlib>
+ using namespace std;
+
+ #if defined(_MSC_VER) && _MSC_VER < 0x514 && __GNUC__<3 // VC7 and gcc 3
diff --git a/devel/gcvs/files/patch-cvsunix-configure.in b/devel/gcvs/files/patch-cvsunix-configure.in
index 1303440aaf0a..e8378117ee0d 100644
--- a/devel/gcvs/files/patch-cvsunix-configure.in
+++ b/devel/gcvs/files/patch-cvsunix-configure.in
@@ -28,7 +28,8 @@
- LIBS="$LIBS -L$GSSAPI/lib -lgssapi -lkrb5 -lasn1 -ldes -lroken"
+ LIBS="$LIBS -L$GSSAPI/lib -lgssapi -lkrb5 -lasn1 -lcrypto -lroken -lcrypt -lcom_err"
else
- LIBS="$LIBS -L$GSSAPI/lib -lgssapi_krb5 -lkrb5 -lcrypto -lcom_err"
+- LIBS="$LIBS -L$GSSAPI/lib -lgssapi_krb5 -lkrb5 -lcrypto -lcom_err"
++ LIBS="$LIBS -L$GSSAPI/lib -lgssapi_krb5 -lgssapi -lkrb5 -lasn1 -lcrypto -lroken -lcrypt -lcom_err"
fi
save_CPPFLAGS=$CPPFLAGS
CPPFLAGS="-I$GSSAPI/include $CPPFLAGS"
diff --git a/devel/gcvs/files/patch-cvsunix-lib-Makefile.in b/devel/gcvs/files/patch-cvsunix-lib-Makefile.in
index 4dac1ed4b659..c9a6c32a0123 100644
--- a/devel/gcvs/files/patch-cvsunix-lib-Makefile.in
+++ b/devel/gcvs/files/patch-cvsunix-lib-Makefile.in
@@ -1,6 +1,23 @@
--- cvsunix/lib/Makefile.in.orig Thu Nov 7 19:29:36 2002
+++ cvsunix/lib/Makefile.in Tue Jul 1 04:38:17 2003
-@@ -200,6 +200,7 @@
+@@ -125,6 +125,7 @@
+ CC = @CC@
+ CXX = @CXX@
+ CFLAGS = @CFLAGS@
++CXXFLAGS = @CXXFLAGS@
+ CPPFLAGS=
+
+ YACC = @YACC@
+@@ -135,7 +136,7 @@
+
+ .cpp.o:
+ $(CXX) $(CPPFLAGS) -I.. -I$(srcdir) -I$(cvs_srcdir) \
+- $(DEFS) $(CFLAGS) -c $<
++ $(DEFS) $(CXXFLAGS) -c $<
+
+ .SUFFIXES:
+ .SUFFIXES: .c .cpp .o .obj
+@@ -200,6 +201,7 @@
regex.o: regex.h
md5.o: md5.h
argmatch.o: cvsgui.h
diff --git a/devel/gcvs/files/patch-make_configure b/devel/gcvs/files/patch-make_configure
deleted file mode 100644
index d089a0675101..000000000000
--- a/devel/gcvs/files/patch-make_configure
+++ /dev/null
@@ -1,19 +0,0 @@
---- make_configure.orig Thu Nov 7 19:42:00 2002
-+++ make_configure Wed Nov 22 15:07:42 2006
-@@ -1,14 +1,4 @@
--aclocal
--autoheader
--
--list=`find . -name Makefile.am -exec dirname {} \;`
--
--for subdir in $list
--do
-- echo making $subdir/Makefile.in
-- automake --add-missing --gnu $subdir/Makefile
--done
--
--autoconf
-+cd cvsunix && %%AUTORECONF%%
-+cd ..
-
- ./configure $*
diff --git a/devel/gcvs/files/patch-rf_uwidget.cpp b/devel/gcvs/files/patch-rf_uwidget.cpp
index 2fdabd535ed0..333194a5c02e 100644
--- a/devel/gcvs/files/patch-rf_uwidget.cpp
+++ b/devel/gcvs/files/patch-rf_uwidget.cpp
@@ -1,6 +1,16 @@
--- rf/uwidget.cpp.orig 2003-01-14 19:07:42.000000000 +0100
+++ rf/uwidget.cpp 2007-11-22 20:06:28.000000000 +0100
-@@ -231,23 +231,23 @@
+@@ -24,7 +24,8 @@
+ #include "config.h"
+ #endif
+
+-#include <stdio.h>
++#include <cstdio>
++#include <cstdlib>
+
+ #include "uwidget.h"
+ #include "uconsole.h"
+@@ -231,23 +232,23 @@
static void gtkclicked(GtkButton *button, gpointer user_data)
{
@@ -30,7 +40,7 @@
gchar *text;
gtk_clist_get_text(GTK_CLIST(clist), row, column, &text);
UEventSendMessage(widid, EV_LIST_SELECTING, UMAKEINT(cmdid, row), text);
-@@ -255,15 +255,15 @@
+@@ -255,15 +256,15 @@
static void gtkselectclistcolumn(GtkCList *clist, gint column, gpointer user_data)
{
@@ -50,7 +60,7 @@
if (event->type == GDK_2BUTTON_PRESS)
{
UEventSendMessage(widid, EV_LIST_DBLCLICK, cmdid, 0L);
-@@ -274,8 +274,8 @@
+@@ -274,8 +275,8 @@
static void gtkcomboclicked(GtkWidget *widget, gpointer user_data)
{
@@ -61,7 +71,7 @@
GtkList *list = GTK_LIST(widget->parent);
GList *selection = list->selection;
-@@ -320,8 +320,8 @@
+@@ -320,8 +321,8 @@
static void gtkmenuactivated(GtkWidget *widget, gpointer user_data)
{
@@ -72,7 +82,7 @@
UStr selTxt;
-@@ -392,7 +392,7 @@
+@@ -392,7 +393,7 @@
static void dataForeach(GQuark key_id, gpointer data, gpointer user_data)
{
const char *str = g_quark_to_string(key_id);
@@ -81,7 +91,7 @@
int cmd;
if(matchToken(str, cmd))
{
-@@ -514,32 +514,32 @@
+@@ -514,32 +515,32 @@
static void gtktreeexpand(GtkWidget *item, gpointer user_data)
{
@@ -122,7 +132,7 @@
g_assert(GTK_IS_TREE_ITEM(item));
UEventSendMessage(widid, EV_TREE_SELECTING, UMAKEINT(cmdid, 1), item);
}
-@@ -661,8 +661,8 @@
+@@ -661,8 +662,8 @@
gint page_num,
gpointer data)
{
@@ -133,7 +143,7 @@
UEventSendMessage(widid, EV_PAGE_CHANGED, UMAKEINT(cmdid, page_num), 0L);
}
-@@ -682,8 +682,8 @@
+@@ -682,8 +683,8 @@
static gint gtkexposeevent(GtkWidget *widget, GdkEvent *event, gpointer user_data)
{
@@ -144,7 +154,7 @@
UEventSendMessage(widid, EV_CUSTOM_DRAW, cmdid, event);
return TRUE;
-@@ -782,7 +782,7 @@
+@@ -782,7 +783,7 @@
m_listeners.push_back(listener);
}
@@ -153,7 +163,7 @@
{
std::vector<UCmdTarget *>::iterator i;
for(i = m_listeners.begin(); i != m_listeners.end(); ++i)
-@@ -3136,10 +3136,10 @@
+@@ -3136,10 +3137,10 @@
if(!GTK_IS_CLIST(w))
return;
diff --git a/devel/gcvs/pkg-plist b/devel/gcvs/pkg-plist
index c28791097640..957c0879082e 100644
--- a/devel/gcvs/pkg-plist
+++ b/devel/gcvs/pkg-plist
@@ -19,8 +19,6 @@ lib/cvs/contrib/rcs-to-cvs
lib/cvs/contrib/rcs2log
lib/cvs/contrib/rcslock
lib/cvs/contrib/sccs2rcs
-@dirrm lib/cvs/contrib
-@dirrm lib/cvs
%%DATADIR%%/ChangeRoot.tcl
%%DATADIR%%/ChangeRootTK.tcl
%%DATADIR%%/Cleanup.tcl
@@ -45,7 +43,6 @@ lib/cvs/contrib/sccs2rcs
%%DATADIR%%/cvs2cl.tcl
%%DATADIR%%/cvsignore_add.tcl
%%DATADIR%%/cvsignore_remove.tcl
-%%DATADIR%%/startup.tcl
%%DATADIR%%/pixmaps/about.xpm
%%DATADIR%%/pixmaps/add.xpm
%%DATADIR%%/pixmaps/addb.xpm
@@ -88,5 +85,8 @@ lib/cvs/contrib/sccs2rcs
%%DATADIR%%/pixmaps/upfolder.xpm
%%DATADIR%%/pixmaps/warning.xpm
%%DATADIR%%/pixmaps/watch.xpm
+%%DATADIR%%/startup.tcl
@dirrm %%DATADIR%%/pixmaps
@dirrm %%DATADIR%%
+@dirrm lib/cvs/contrib
+@dirrm lib/cvs