diff options
author | Gabor Kovesdan <gabor@FreeBSD.org> | 2012-03-18 23:48:38 +0000 |
---|---|---|
committer | Gabor Kovesdan <gabor@FreeBSD.org> | 2012-03-18 23:48:38 +0000 |
commit | f4cf96afe6d3c6cdaf93fc63a895cc6582f506aa (patch) | |
tree | 9d05e3b7d40b63203cf8353b559110d59a67e93a /textproc/bsdsort | |
parent | f8b6f2db73a203d8d74a201833e9fae088a6e9e7 (diff) | |
download | ports-f4cf96afe6d3c6cdaf93fc63a895cc6582f506aa.tar.gz ports-f4cf96afe6d3c6cdaf93fc63a895cc6582f506aa.zip |
Notes
Diffstat (limited to 'textproc/bsdsort')
-rw-r--r-- | textproc/bsdsort/Makefile | 33 | ||||
-rw-r--r-- | textproc/bsdsort/distinfo | 4 | ||||
-rw-r--r-- | textproc/bsdsort/pkg-plist | 7 |
3 files changed, 37 insertions, 7 deletions
diff --git a/textproc/bsdsort/Makefile b/textproc/bsdsort/Makefile index 78178cbca860..5daaeb24964a 100644 --- a/textproc/bsdsort/Makefile +++ b/textproc/bsdsort/Makefile @@ -6,7 +6,7 @@ # PORTNAME= sort -PORTVERSION= 20120313 +PORTVERSION= 20120318 CATEGORIES= textproc MASTER_SITES= ${MASTER_SITE_LOCAL} MASTER_SITE_SUBDIR= gabor @@ -23,10 +23,37 @@ MAN1= sort.1 MAKE_ENV+= BINDIR="${PREFIX}/bin" \ MANDIR="${MANPREFIX}/man/man" \ - CATDIR="${MANPREFIX}/man/man" + CATDIR="${MANPREFIX}/man/man" \ + NLSDIR="${PREFIX}/share/nls" + +OPTIONS= NLS "Compile with NLS support" on \ + OVERWRITE_BASE "Replaces base GNU sort" off + +.include <bsd.port.pre.mk> + +.if defined(WITHOUT_NLS) +MAKE_ENV+= WITHOUT_NLS=yes +PLIST_SUB+= NLS="@comment " +.else +PLIST_SUB+= NLS="" +.endif + +.if defined(WITH_OVERWRITE_BASE) +PREFIX= /usr +PLIST_SUB+= OVERWRITE_BASE="" NO_OVERWRITE_BASE="@comment " +.else +PLIST_SUB+= OVERWRITE_BASE="@comment " NO_OVERWRITE_BASE="" +.endif + +.if defined(WITH_OVERWRITE_BASE) && exists(${PREFIX}/bin/sort) +pre-install: + ${INSTALL_PROGRAM} ${PREFIX}/bin/sort ${PREFIX}/bin/gnusort +.endif post-install: ${LN} -s ${PREFIX}/bin/sort ${PREFIX}/bin/bsdsort +.if !defined(WITH_OVERWRITE_BASE) ${LN} -s /usr/bin/sort ${PREFIX}/bin/gnusort +.endif -.include <bsd.port.mk> +.include <bsd.port.post.mk> diff --git a/textproc/bsdsort/distinfo b/textproc/bsdsort/distinfo index 30e4c106ec5e..69ddf8a357ad 100644 --- a/textproc/bsdsort/distinfo +++ b/textproc/bsdsort/distinfo @@ -1,2 +1,2 @@ -SHA256 (sort-20120313.tar.gz) = e36b47ca7fa593ae013c1fa487d0bd9fbb60a77c10fb90bb20202569cbc1f323 -SIZE (sort-20120313.tar.gz) = 44462 +SHA256 (sort-20120318.tar.gz) = 441a00a392939c66be62b4c4c343672aef742f1abeebe49f0c312366227b6e8d +SIZE (sort-20120318.tar.gz) = 49397 diff --git a/textproc/bsdsort/pkg-plist b/textproc/bsdsort/pkg-plist index cb4db61de69e..c6401269e07d 100644 --- a/textproc/bsdsort/pkg-plist +++ b/textproc/bsdsort/pkg-plist @@ -1,5 +1,8 @@ @exec /bin/ln -s %%PREFIX%%/bin/sort %%PREFIX%%/bin/bsdsort -@exec /bin/ln -s /usr/bin/sort %%PREFIX%%/bin/gnusort +%%NO_OVERWRITE_BASE%%@exec /bin/ln -s /usr/bin/sort %%PREFIX%%/bin/gnusort +%%OVERWRITE_BASE%%@exec /bin/mv %%PREFIX%%/bin/sort %%PREFIX%%/bin/gnusort || true +%%OVERWRITE_BASE%%@unexec /bin/cp %%PREFIX%%/bin/gnusort %%PREFIX%%/bin/sort || true bin/bsdsort bin/gnusort -bin/sort +%%NO_OVERWRITE_BASE%%bin/sort +%%NLS%%share/nls/hu_HU.ISO8859-2/sort.cat |