aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordanilo <danilo@FreeBSD.org>2014-02-17 02:38:59 +0800
committerdanilo <danilo@FreeBSD.org>2014-02-17 02:38:59 +0800
commit841dcfdb5ca4519939a56c50fa82ce2fe5fbf869 (patch)
treee1371aa37d5810776306d3618049300329736a58
parenta99cc3468490950d67bdb90d76efe9382799714e (diff)
downloadfreebsd-ports-gnome-841dcfdb5ca4519939a56c50fa82ce2fe5fbf869.tar.gz
freebsd-ports-gnome-841dcfdb5ca4519939a56c50fa82ce2fe5fbf869.tar.zst
freebsd-ports-gnome-841dcfdb5ca4519939a56c50fa82ce2fe5fbf869.zip
- Add stage support
- Improve COMMENT - Add LICENSE
-rw-r--r--math/gexpr/Makefile8
-rw-r--r--math/gexpr/files/patch-Makefile15
2 files changed, 17 insertions, 6 deletions
diff --git a/math/gexpr/Makefile b/math/gexpr/Makefile
index cdf0b7b58cc7..3316115880ad 100644
--- a/math/gexpr/Makefile
+++ b/math/gexpr/Makefile
@@ -9,12 +9,12 @@ MASTER_SITES= ${MASTER_SITE_SUNSITE}
MASTER_SITE_SUBDIR= apps/math/calc
MAINTAINER= ports@FreeBSD.org
-COMMENT= A shell calculator
+COMMENT= Shell calculator
-MAN1= gexpr.1
-PLIST_FILES= bin/gexpr
+LICENSE= GPLv2
+
+PLIST_FILES= bin/gexpr man/man1/gexpr.1.gz
-NO_STAGE= yes
post-patch:
@${REINPLACE_CMD} -e "s,/usr/local,${PREFIX}," ${WRKSRC}/Makefile
diff --git a/math/gexpr/files/patch-Makefile b/math/gexpr/files/patch-Makefile
index 66a75a976db9..f194ed91f039 100644
--- a/math/gexpr/files/patch-Makefile
+++ b/math/gexpr/files/patch-Makefile
@@ -1,5 +1,5 @@
---- Makefile.orig Sat Feb 13 02:28:35 1999
-+++ Makefile Sun Jul 6 20:06:03 2003
+--- ./Makefile.orig 1999-02-12 15:28:35.000000000 -0200
++++ ./Makefile 2014-02-16 15:38:19.000000000 -0300
@@ -1,11 +1,10 @@
# Makefile for gexpr
# Last updated: 10 February 1999
@@ -14,3 +14,14 @@
all: $(GEXPR)
+@@ -31,8 +30,8 @@
+ $(CC) $(OPTS) -c gexpr.c
+
+ install:
+- cp -f gexpr /usr/local/bin;
+- cp -f gexpr.1 /usr/local/man/man1
++ install -s gexpr ${DESTDIR}/usr/local/bin;
++ install gexpr.1 ${DESTDIR}/usr/local/man/man1
+
+ clean:
+ rm -f *.o core