aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authorantoine <antoine@FreeBSD.org>2014-09-21 23:04:47 +0800
committerantoine <antoine@FreeBSD.org>2014-09-21 23:04:47 +0800
commitd7f583ee57c84ced44939652e3d0b91adb6910f0 (patch)
treed0d7858b94859207ed6f1b247e19d7d9617bd26e /www
parentaed33302d68e0eb44ca9276dec923eca2f155bda (diff)
downloadfreebsd-ports-gnome-d7f583ee57c84ced44939652e3d0b91adb6910f0.tar.gz
freebsd-ports-gnome-d7f583ee57c84ced44939652e3d0b91adb6910f0.tar.zst
freebsd-ports-gnome-d7f583ee57c84ced44939652e3d0b91adb6910f0.zip
Allow staging as a regular user
Reduce patching
Diffstat (limited to 'www')
-rw-r--r--www/selenium/Makefile4
-rw-r--r--www/selenium/files/patch-Makefile11
-rw-r--r--www/selenium/files/patch-configure11
3 files changed, 4 insertions, 22 deletions
diff --git a/www/selenium/Makefile b/www/selenium/Makefile
index 18d03fd19a48..4efaaad3814b 100644
--- a/www/selenium/Makefile
+++ b/www/selenium/Makefile
@@ -11,7 +11,11 @@ MAINTAINER= kaworu@users.sourceforge.jp
COMMENT= Selenium is web application test tool!
HAS_CONFIGURE= yes
+MAKE_ARGS= PREFIX=${STAGEDIR}${PREFIX}
SUB_FILES= pkg-message
+post-patch:
+ @${REINPLACE_CMD} 's,-o root -g wheel,,' ${WRKSRC}/configure
+
.include <bsd.port.mk>
diff --git a/www/selenium/files/patch-Makefile b/www/selenium/files/patch-Makefile
deleted file mode 100644
index c32e75de719f..000000000000
--- a/www/selenium/files/patch-Makefile
+++ /dev/null
@@ -1,11 +0,0 @@
---- Makefile.orig 2014-07-02 21:36:48.517027340 +0800
-+++ Makefile 2014-07-02 21:38:23.869021431 +0800
-@@ -9,7 +9,7 @@
-
- PREFIX?=/usr/local
-
--DST=$(PREFIX)/www/selenium
-+DST=$(DESTDIR)$(PREFIX)/www/selenium
-
- all:
- # @echo all
diff --git a/www/selenium/files/patch-configure b/www/selenium/files/patch-configure
deleted file mode 100644
index 574b3d2703a9..000000000000
--- a/www/selenium/files/patch-configure
+++ /dev/null
@@ -1,11 +0,0 @@
---- configure.orig 2014-07-02 21:37:06.899023988 +0800
-+++ configure 2014-07-02 21:49:07.936973370 +0800
-@@ -22,7 +22,7 @@ EOF
- |/usr/bin/sed -e 's:^selenium/::' \
- |/usr/bin/sed -e 's:\(.*\): ${INSTALL} -c -o root -g wheel -m 0644 selenium/\1 ${DST}/\1:'
-
--echo " \${INSTALL} -c -o root -g wheel -m 0644 man/selenium.1 \${PREFIX}/man/man1/selenium.1"
-+echo " \${INSTALL} -c -o root -g wheel -m 0644 man/selenium.1 \$(DESTDIR)\${PREFIX}/man/man1/selenium.1"
-
- /usr/bin/find doc -type d\
- | /usr/bin/sed -e 's:\(.*\): ${INSTALL} -d -o root -g wheel ${DST}/\1:'