[116483] trunk/dports/textproc/jshon
g5pw at macports.org
g5pw at macports.org
Sun Jan 26 14:35:36 PST 2014
Revision: 116483
https://trac.macports.org/changeset/116483
Author: g5pw at macports.org
Date: 2014-01-26 14:35:36 -0800 (Sun, 26 Jan 2014)
Log Message:
-----------
textproc/jshon
update to HEAD
remove -Werror and other error reporting that should not be in production builds (closes #37067)
patch Makefile to use BSD install and to obey PREFIX
Modified Paths:
--------------
trunk/dports/textproc/jshon/Portfile
Added Paths:
-----------
trunk/dports/textproc/jshon/files/
trunk/dports/textproc/jshon/files/Makefile.diff
Modified: trunk/dports/textproc/jshon/Portfile
===================================================================
--- trunk/dports/textproc/jshon/Portfile 2014-01-26 17:49:58 UTC (rev 116482)
+++ trunk/dports/textproc/jshon/Portfile 2014-01-26 22:35:36 UTC (rev 116483)
@@ -3,8 +3,8 @@
PortSystem 1.0
PortGroup github 1.0
-github.setup keenerd jshon a970a8840c698b880ab23172d6a4bbbd4f257753
-version 20130901
+github.setup keenerd jshon e9b59a3cbbbf5423e1c4f585ce1d885f83f930c9
+version 20140126
revision 0
categories textproc
platforms darwin
@@ -16,18 +16,17 @@
homepage http://kmkeen.com/jshon/
-checksums rmd160 d7ec39e8b48f0be8718601b1b35391f264bd3cf4 \
- sha256 e403c65dad6ff88a8e917548d1c9e548c860baef11e7a3bfc4cfc59068114e02
+checksums rmd160 8521fd3717eb50671ffc189305fe0624cea67527 \
+ sha256 3dbfea5dd22cf842ce68bc0f12446caa3a10fc06b68065507531dda4fb253b04
depends_lib port:jansson
+patchfiles Makefile.diff
+
use_configure no
variant universal {}
build.args CC="${configure.cc} [get_canonical_archflags cc] ${configure.cflags}"
-destroot {
- xinstall -m 755 ${worksrcpath}/jshon ${destroot}${prefix}/bin/
- xinstall -m 644 ${worksrcpath}/jshon.1 ${destroot}${prefix}/share/man/man1/
-}
+destroot.env-append PREFIX=${prefix}
Added: trunk/dports/textproc/jshon/files/Makefile.diff
===================================================================
--- trunk/dports/textproc/jshon/files/Makefile.diff (rev 0)
+++ trunk/dports/textproc/jshon/files/Makefile.diff 2014-01-26 22:35:36 UTC (rev 116483)
@@ -0,0 +1,29 @@
+--- Makefile 2013-12-11 22:55:30.000000000 +0100
++++ Makefile.new 2014-01-26 23:13:03.000000000 +0100
+@@ -1,11 +1,12 @@
+ # jshon - command line JSON parsing
+
+-CFLAGS := -std=c99 -Wall -pedantic -Wextra -Werror ${CFLAGS}
++CFLAGS := -std=c99 ${CFLAGS}
+ LDLIBS = -ljansson
+ INSTALL=install
+ DESTDIR?=/
+-MANDIR=$(DESTDIR)/usr/share/man/man1/
+-TARGET_PATH=$(DESTDIR)/usr/bin
++PREFIX?=/usr
++MANDIR=$(DESTDIR)$(PREFIX)/share/man/man1/
++TARGET_PATH=$(DESTDIR)$(PREFIX)/bin
+ DISTFILES=jshon
+ MANFILE=jshon.1
+
+@@ -25,8 +25,8 @@
+ rm -f *.o $(DISTFILES)
+
+ install:
+- $(INSTALL) -D $(DISTFILES) $(TARGET_PATH)/$(DISTFILES)
+- $(INSTALL) -D $(MANFILE) $(MANDIR)/$(MANFILE)
++ $(INSTALL) $(DISTFILES) $(TARGET_PATH)/$(DISTFILES)
++ $(INSTALL) $(MANFILE) $(MANDIR)/$(MANFILE)
+
+ dist: clean
+ sed -i "s/#define JSHONVER .*/#define JSHONVER ${VERSION}/" jshon.c
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140126/ee866a75/attachment.html>
More information about the macports-changes
mailing list