- Patch euktoeps, so it uses GNU getopt

- Add dependency on misc/getopt

Reported by:	Nicolas <nh.techn at gmail.com>
This commit is contained in:
Ashish SHUKLA 2015-11-28 04:24:16 +00:00
parent 27603e1cd4
commit 1f2d3fe605
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=402508
2 changed files with 14 additions and 2 deletions

View file

@ -3,7 +3,7 @@
PORTNAME= eukleides PORTNAME= eukleides
PORTVERSION= 1.5.4 PORTVERSION= 1.5.4
PORTREVISION= 2 PORTREVISION= 3
CATEGORIES= math CATEGORIES= math
MASTER_SITES= http://www.eukleides.org/files/ MASTER_SITES= http://www.eukleides.org/files/
@ -14,7 +14,8 @@ LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/COPYING LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libreadline.so:${PORTSDIR}/devel/readline LIB_DEPENDS= libreadline.so:${PORTSDIR}/devel/readline
RUN_DEPENDS= pstoedit:${PORTSDIR}/graphics/pstoedit RUN_DEPENDS= pstoedit:${PORTSDIR}/graphics/pstoedit \
getopt>=0:${PORTSDIR}/misc/getopt
USE_TEX= latex USE_TEX= latex
USES= bison gettext iconv gmake tar:bzip2 USES= bison gettext iconv gmake tar:bzip2

View file

@ -0,0 +1,11 @@
--- bash/euktoeps.orig
+++ bash/euktoeps
@@ -31,7 +31,7 @@
exit $1
}
-args=$(getopt -o i:l::#:d:vh --long include:,locale::,interactive:,data:,version,help \
+args=$(%%LOCALBASE%%/bin/getopt -o i:l::#:d:vh --long include:,locale::,interactive:,data:,version,help \
-n 'Euktoeps' -- "$@")
if [ $? -ne 0 ]