summaryrefslogtreecommitdiffstats
path: root/lang
diff options
context:
space:
mode:
authorjdp <jdp@FreeBSD.org>2000-02-13 23:16:52 +0000
committerjdp <jdp@FreeBSD.org>2000-02-13 23:16:52 +0000
commit760b160e6dbd72416a3d1a67263d5861b82807d0 (patch)
treebf648a8a3c28e7a7655f13582993c2f9484a23da /lang
parent04a43b95c22b775dbd09ae8f757b56018c3d07cf (diff)
downloadFreeBSD-ports-760b160e6dbd72416a3d1a67263d5861b82807d0.zip
FreeBSD-ports-760b160e6dbd72416a3d1a67263d5861b82807d0.tar.gz
Use my FreeBSD.org address in the MAINTAINER line. Spell freebsd
as "FreeBSD". Check for a conflicting Modula-3 port before installing. Install the copyright notice into a different place.
Diffstat (limited to 'lang')
-rw-r--r--lang/pm3-base/Makefile13
-rw-r--r--lang/pm3-base/pkg-plist4
-rw-r--r--lang/pm3-base/scripts/check_conflicts18
3 files changed, 28 insertions, 7 deletions
diff --git a/lang/pm3-base/Makefile b/lang/pm3-base/Makefile
index a04e019..3fbd10e 100644
--- a/lang/pm3-base/Makefile
+++ b/lang/pm3-base/Makefile
@@ -1,18 +1,18 @@
# New ports collection makefile for: pm3-base
# Version required: 1.1.13
# Date created: 6 Feb 2000
-# Whom: John Polstra <jdp@freebsd.org>
+# Whom: John Polstra <jdp@FreeBSD.org>
#
# $FreeBSD$
#
DISTNAME= pm3-base-${VERSION}
CATEGORIES= lang
-MASTER_SITES= http://www.freebsd.org/~jdp/distfiles/pm3/
+MASTER_SITES= http://www.FreeBSD.org/~jdp/distfiles/pm3/
DISTFILES= ${BOOTSTRAP} \
pm3-${VERSION}-src.tar.bz2
-MAINTAINER= jdp@polstra.com
+MAINTAINER= jdp@FreeBSD.org
DIST_SUBDIR= pm3
INSTALL_TARGET= all
@@ -82,13 +82,16 @@ do-build:
@${ECHO_MSG} "This port does everything in the install step."
@${ECHO_MSG} "The build step is a no-op."
+pre-install:
+ @${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/check_conflicts
+
do-install:
@${RM} -rf ${WRKSRC}/${TARGET}
@(ulimit -d `ulimit -Hd` && ulimit -m `ulimit -Hm` && \
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} \
${MAKEFILE} ${MAKE_ARGS} ${INSTALL_TARGET})
@for i in ${PROGS}; do strip ${PREFIX}/$$i; done
- @${MKDIR} ${PREFIX}/share/pm3
- @${INSTALL_DATA} ${WRKSRC}/src/COPYRIGHT ${PREFIX}/share/pm3
+ @${MKDIR} ${PREFIX}/share/pm3-base
+ @${INSTALL_DATA} ${WRKSRC}/src/COPYRIGHT ${PREFIX}/share/pm3-base
.include <bsd.port.post.mk>
diff --git a/lang/pm3-base/pkg-plist b/lang/pm3-base/pkg-plist
index 2d4be81..f671356 100644
--- a/lang/pm3-base/pkg-plist
+++ b/lang/pm3-base/pkg-plist
@@ -903,8 +903,8 @@ lib/m3/pkg/tempfiles/%%TARGET%%/libTempFiles.a
lib/m3/pkg/tempfiles/%%TARGET%%/libTempFiles.m3x
lib/m3/pkg/tempfiles/%%TARGET%%/libTempFiles.so
lib/m3/pkg/tempfiles/src/TempFiles.i3
-share/pm3/COPYRIGHT
-@dirrm share/pm3
+share/pm3-base/COPYRIGHT
+@dirrm share/pm3-base
@dirrm lib/m3/pkg/tempfiles/src
@dirrm lib/m3/pkg/tempfiles/%%TARGET%%
@dirrm lib/m3/pkg/tempfiles
diff --git a/lang/pm3-base/scripts/check_conflicts b/lang/pm3-base/scripts/check_conflicts
new file mode 100644
index 0000000..9b41749
--- /dev/null
+++ b/lang/pm3-base/scripts/check_conflicts
@@ -0,0 +1,18 @@
+#! /bin/sh
+#
+# check_conflicts - Checks for an SRC modula-3-lib port
+# installed into the same PREFIX.
+
+portnames=$(pkg_info -aI | sed -n -e '/^modula-3-/s/[ ].*$//p')
+for port in ${portnames}; do
+ prefixes=$(pkg_info -p ${port} |\
+ sed -n -e 's/^[ ]*CWD to \([^ ]*\).*$/\1/p')
+ for prefix in ${prefixes}; do
+ if [ X${prefix} = X${PREFIX} ]; then
+ echo "This port conflicts with your installed \"${port}\" port."
+ echo "Please remove \"${port}\" before continuing."
+ exit 1;
+ fi
+ done
+done
+exit 0
OpenPOWER on IntegriCloud