[99730] trunk/dports/devel
phw at macports.org
phw at macports.org
Thu Nov 15 03:53:09 PST 2012
Revision: 99730
https://trac.macports.org/changeset/99730
Author: phw at macports.org
Date: 2012-11-15 03:53:09 -0800 (Thu, 15 Nov 2012)
Log Message:
-----------
New Port: astyle-dev: Development version of astyle (capable of formating c++11 expressions)
Added Paths:
-----------
trunk/dports/devel/astyle-dev/
trunk/dports/devel/astyle-dev/Portfile
trunk/dports/devel/astyle-dev/files/
trunk/dports/devel/astyle-dev/files/patch-Makefile.diff
Added: trunk/dports/devel/astyle-dev/Portfile
===================================================================
--- trunk/dports/devel/astyle-dev/Portfile (rev 0)
+++ trunk/dports/devel/astyle-dev/Portfile 2012-11-15 11:53:09 UTC (rev 99730)
@@ -0,0 +1,55 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id:
+
+PortSystem 1.0
+
+name astyle
+version 2.03b
+revision 0
+categories devel
+platforms darwin
+maintainers phw openmaintainer
+
+description source code beautifier for the C, C++, C# and Java programming languages (beta version)
+long_description Artistic Style is a source code indenter, source code formatter, \
+ and source code beautifier for the C, C++, C# and Java \
+ programming languages.
+
+homepage http://astyle.sourceforge.net
+master_sites sourceforge::macosx
+distfiles ${name}_${version}_macosx.tar.gz:macosx
+
+
+fetch.type svn
+svn.revision 361
+svn.url https://astyle.svn.sourceforge.net/svnroot/astyle/trunk/AStyle/
+
+checksums md5 38f3a20be7ba685496d479316d6004b0 \
+ sha1 b8e3e79c7134a0e97a1948608e3b58201d3af3de \
+ rmd160 c7dda2cbb805ad1102421b0925d677cbd9069b5e
+
+conflicts astyle
+
+worksrcdir ${name}/build/mac
+patchfiles patch-Makefile.diff
+use_configure no
+
+variant universal {}
+
+build.target release
+build.args-append prefix=${prefix} \
+ CXX="${configure.cxx} [get_canonical_archflags cxx]"
+
+destroot.args-append \
+ prefix=${prefix} \
+ CXX="${configure.cxx} [get_canonical_archflags cxx]"
+
+variant lib description {Build and install the libraries} {
+ build.target-append shared static
+ destroot.target-append install-lib
+}
+
+variant java description {Build and install the JNI library} {
+ build.target-append java
+ destroot.target-append install-jnilib
+}
Property changes on: trunk/dports/devel/astyle-dev/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: trunk/dports/devel/astyle-dev/files/patch-Makefile.diff
===================================================================
--- trunk/dports/devel/astyle-dev/files/patch-Makefile.diff (rev 0)
+++ trunk/dports/devel/astyle-dev/files/patch-Makefile.diff 2012-11-15 11:53:09 UTC (rev 99730)
@@ -0,0 +1,57 @@
+--- Makefile.orig 2011-11-21 09:15:43.000000000 -0600
++++ Makefile 2012-01-19 21:43:19.000000000 -0600
+@@ -18,7 +18,7 @@
+ # NOTE for java compiles the environment variable $JAVA_HOME must be set
+ # example: export JAVA_HOME=/usr/lib/jvm/java-6-sun-1.6.0.00
+ ifndef JAVA_HOME
+- JAVA_HOME = /usr/lib/jvm/default-java
++ JAVA_HOME = /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK
+ endif
+
+ # set prefix if not defined on the command line
+@@ -37,9 +37,9 @@
+ objdir = obj
+ ipath=$(prefix)/bin
+ CBASEFLAGS = -W -Wall -fno-rtti -fno-exceptions
+-JAVAINCS = -I$(JAVA_HOME)/include
++JAVAINCS = -I$(JAVA_HOME)/Headers
+ CXX = g++
+-INSTALL=install -o $(USER) -g $(USER)
++INSTALL=install
+ # INSTALL=install -o 0 -g 0
+
+ # for testing on linux
+@@ -186,19 +186,24 @@
+ cleanobj:
+ rm -f $(objdir)/*.o
+
+-install:
+- $(INSTALL) -m 755 -d $(ipath)
+- @$(INSTALL) -m 755 $(bindir)/astyle $(ipath)
++install: release
++ $(INSTALL) -m 755 -d $(DESTDIR)$(ipath)
++ $(INSTALL) -m 755 $(bindir)/astyle $(DESTDIR)$(ipath)
+
+- $(INSTALL) -m 755 -d $(SYSCONF_PATH)
+- @mkdir -p $(SYSCONF_PATH)/html;
++ $(INSTALL) -m 755 -d $(DESTDIR)$(SYSCONF_PATH)
++ @mkdir -p $(DESTDIR)$(SYSCONF_PATH)/html;
+ @for files in ../../doc/*.html ../../doc/*.css; \
+ do \
+- $(INSTALL) -m 644 $$files $(SYSCONF_PATH)/html; \
++ $(INSTALL) -m 644 $$files $(DESTDIR)$(SYSCONF_PATH)/html; \
+ done
+- @if [ -d $(SYSCONF_PATH_OLD) ]; then \
+- rm -rf $(SYSCONF_PATH_OLD); \
+- fi
++
++install-lib: libastyle.a libastyle.dylib
++ $(INSTALL) -m 755 -d $(DESTDIR)$(prefix)/lib
++ $(INSTALL) $(bindir)/libastyle.a $(bindir)/libastyle.dylib $(DESTDIR)$(prefix)/lib
++
++install-jnilib: libastylej.dylib
++ $(INSTALL) -m 755 -d $(DESTDIR)$(prefix)/lib
++ $(INSTALL) $(bindir)/libastylej.dylib $(DESTDIR)$(prefix)/lib
+
+ uninstall:
+ rm -f $(ipath)/astyle
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121115/b5ec4266/attachment.html>
More information about the macports-changes
mailing list