aboutsummaryrefslogtreecommitdiffstats
path: root/devel/prcs
diff options
context:
space:
mode:
authorleeym <leeym@FreeBSD.org>2004-02-17 17:03:25 +0800
committerleeym <leeym@FreeBSD.org>2004-02-17 17:03:25 +0800
commit2dccf25a2057179e46743d08f9f8218f85015398 (patch)
tree83ba2fc61c0312993279358b876a727efd3e3a33 /devel/prcs
parent155c0a226bb353470db6b189b2ec495902be2372 (diff)
downloadfreebsd-ports-gnome-2dccf25a2057179e46743d08f9f8218f85015398.tar.gz
freebsd-ports-gnome-2dccf25a2057179e46743d08f9f8218f85015398.tar.zst
freebsd-ports-gnome-2dccf25a2057179e46743d08f9f8218f85015398.zip
- add USE_GCC=2.95 and unbreak this port
- use PLIST_FILES and INFO instead of pkg-plist - use REINPLACE_CMD instead of file/patch-*
Diffstat (limited to 'devel/prcs')
-rw-r--r--devel/prcs/Makefile27
-rw-r--r--devel/prcs/files/patch-af8
-rw-r--r--devel/prcs/files/patch-ag8
-rw-r--r--devel/prcs/pkg-plist16
4 files changed, 17 insertions, 42 deletions
diff --git a/devel/prcs/Makefile b/devel/prcs/Makefile
index 8e77ea1f08b0..41dede2e7578 100644
--- a/devel/prcs/Makefile
+++ b/devel/prcs/Makefile
@@ -18,25 +18,32 @@ COMMENT= The Project Revision Control System
USE_GMAKE= yes
GNU_CONFIGURE= yes
USE_REINPLACE= yes
+USE_GCC= 2.95
MAN1= prcs.1
-
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} >= 500113
-BROKEN= "Does not compile (bad C++ code)"
-.endif
+INFO= prcs
+PLIST_FILES= bin/prcs bin/prcs-callback bin/prcs-ediff bin/prcs-emerge
.if exists(${LOCALBASE}/bin/emacs)
-PLIST_SUB+= EMACS=''
-.else
-PLIST_SUB+= EMACS='@comment '
+PLIST_FILES+= share/emacs/site-lisp/prcs.el \
+ share/emacs/site-lisp/prcs.elc \
+ share/emacs/site-lisp/prcs-ediff.el \
+ share/emacs/site-lisp/prcs-ediff.elc \
+ share/emacs/site-lisp/prcs-hooks.el \
+ share/emacs/site-lisp/prcs-hooks.elc
.endif
+post-patch:
+ ${REINPLACE_CMD} -Ee 's,#!/usr/local/bin/perl5?,#!${PERL},g' \
+ ${WRKSRC}/contrib/prcs-*
+
pre-configure:
.if !exists(${LOCALBASE}/bin/emacs)
${REINPLACE_CMD} -Ee "s@^(SUBDIRS = .*) emacs (.*)@\1 \2@" \
${WRKSRC}/Makefile.in
.endif
-.include <bsd.port.post.mk>
+post-install:
+ install-info ${PREFIX}/info/${INFO}.info ${PREFIX}/info/dir
+
+.include <bsd.port.mk>
diff --git a/devel/prcs/files/patch-af b/devel/prcs/files/patch-af
deleted file mode 100644
index 172599635f0d..000000000000
--- a/devel/prcs/files/patch-af
+++ /dev/null
@@ -1,8 +0,0 @@
---- contrib/prcs-ediff.orig Tue Oct 30 21:21:37 2001
-+++ contrib/prcs-ediff Tue Oct 30 21:21:55 2001
-@@ -1,4 +1,4 @@
--#!/usr/local/bin/perl5
-+#! /usr/bin/env perl5
- # Original author: Ulrich Pfeifer
- # modified jglick@sig.bsh.com:
- # $Id: prcs-ediff 1.2 Sat, 11 Apr 1998 17:54:43 -0700 jmacd $
diff --git a/devel/prcs/files/patch-ag b/devel/prcs/files/patch-ag
deleted file mode 100644
index 862be51fa893..000000000000
--- a/devel/prcs/files/patch-ag
+++ /dev/null
@@ -1,8 +0,0 @@
---- contrib/prcs-emerge.orig Tue Oct 30 21:22:28 2001
-+++ contrib/prcs-emerge Tue Oct 30 21:22:52 2001
-@@ -1,4 +1,4 @@
--#!/usr/local/bin/perl
-+#! /usr/bin/env perl
- # -*- Mode: Perl -*-
- # $Basename: prcs-emerge $
- # $Revision: 1.2 $
diff --git a/devel/prcs/pkg-plist b/devel/prcs/pkg-plist
deleted file mode 100644
index a9fa71ca4fc7..000000000000
--- a/devel/prcs/pkg-plist
+++ /dev/null
@@ -1,16 +0,0 @@
-bin/prcs
-bin/prcs-callback
-bin/prcs-ediff
-bin/prcs-emerge
-info/prcs.info
-info/prcs.info-1
-info/prcs.info-2
-info/prcs.info-3
-%%EMACS%%share/emacs/site-lisp/prcs.el
-%%EMACS%%share/emacs/site-lisp/prcs.elc
-%%EMACS%%share/emacs/site-lisp/prcs-ediff.el
-%%EMACS%%share/emacs/site-lisp/prcs-ediff.elc
-%%EMACS%%share/emacs/site-lisp/prcs-hooks.el
-%%EMACS%%share/emacs/site-lisp/prcs-hooks.elc
-@unexec install-info --delete %D/info/prcs.info %D/info/dir
-@exec install-info %D/info/prcs.info %D/info/dir