[146011] trunk/dports/graphics/libcaca/Portfile

michaelld at macports.org michaelld at macports.org
Wed Feb 24 11:59:35 PST 2016


Revision: 146011
          https://trac.macports.org/changeset/146011
Author:   michaelld at macports.org
Date:     2016-02-24 11:59:35 -0800 (Wed, 24 Feb 2016)
Log Message:
-----------
libcaca:
+ move to using Github PortGroup;
+ add libcaca-devel port, which is a drop-in replacement for libcaca;
+ fix configure.args to disable everything not needed by default;
+ fix all depends_lib to avoid stealth dependencies.

Modified Paths:
--------------
    trunk/dports/graphics/libcaca/Portfile

Modified: trunk/dports/graphics/libcaca/Portfile
===================================================================
--- trunk/dports/graphics/libcaca/Portfile	2016-02-24 19:26:38 UTC (rev 146010)
+++ trunk/dports/graphics/libcaca/Portfile	2016-02-24 19:59:35 UTC (rev 146011)
@@ -2,62 +2,110 @@
 # $Id$
 
 PortSystem          1.0
+PortGroup           github 1.0
 
 name                libcaca
-version             0.99.beta19
-revision            4
 categories          graphics
 license             WTFPL-2 LGPL-2+
 maintainers         nomaintainer
-
 description         Colour AsCii Art library
 long_description    \
     The libcaca library is a graphics library that outputs text \
     instead of pixels, so that it can work on older video cards \
     or text terminals. It is not unlike the famous AAlib library.
+platforms           darwin
 
+# common directory for storing downloaded tarballs
+dist_subdir         libcaca
+
+if {${name} eq ${subport}} {
+
+    github.setup    cacalabs libcaca 0.99.beta19
+    revision        5
+    checksums       \
+        rmd160 8623dbfe2584d6e5c633aa140f30139a13a59128 \
+        sha256 128b467c4ed03264c187405172a4e83049342cc8cc2f655f53a2d0ee9d3772f4
+
+    long_description ${long_description} ${subport} \
+provides the release version.
+    conflicts       libcaca-devel
+
+}
+
+subport libcaca-devel {
+
+    github.setup    cacalabs libcaca ae47c93bffd93323f1f14fcdfe311d56009a0e84
+    version         20160210
+    checksums       \
+        rmd160 819f7da582bacae203280bbad6888eca95385ba1 \
+        sha256 15c62e23223434ef959110d53b375d42dc0be71b0e33ad1473021a600610a0a2
+
+    conflicts       libcaca
+    long_description ${long_description} ${subport} \
+provides the libcaca GIT master branch and is typically updated monthly.
+
+}
+
+# override githib PortGroup homepage setting
+
 homepage            http://libcaca.zoy.org/wiki/libcaca
-platforms           darwin
+
 depends_build       port:pkgconfig
-depends_lib         port:ncurses
-master_sites        http://caca.zoy.org/files/libcaca/
-#master_sites       http://libcaca.zoy.org/raw-attachment/wiki/libcaca/
+depends_lib         port:ncurses port:zlib
 
-checksums           md5     a3d4441cdef488099f4a92f4c6c1da00 \
-                    sha1    ed138f3717648692113145b99a80511178548010 \
-                    rmd160  8623dbfe2584d6e5c633aa140f30139a13a59128 \
-                    sha256  128b467c4ed03264c187405172a4e83049342cc8cc2f655f53a2d0ee9d3772f4
-
 # Teach glibtool about -stdlib=libc++
 use_autoreconf      yes
 autoreconf.args     -fvi
 
-configure.args      --mandir=${prefix}/share/man \
-                    --disable-win32 --disable-conio --disable-slang \
-                    --disable-imlib2 --disable-doc \
-                    --disable-x11 --enable-ncurses --enable-imlib2 \
-                    --disable-ruby --disable-csharp
+configure.args      \
+    --disable-kernel \
+    --disable-slang \
+    --disable-win32 \
+    --disable-conio \
+    --disable-cocoa \
+    --disable-network \
+    --disable-vga \
+    --disable-csharp \
+    --disable-java \
+    --disable-cxx \
+    --disable-python \
+    --disable-ruby \
+    --disable-debug \
+    --disable-profiling \
+    --disable-plugins \
+    --disable-doc \
+    --disable-cppunit \
+    --disable-zzuf
 
+configure.args-append \
+    --mandir=${prefix}/share/man \
+    --enable-ncurses
+
 # Disable silent rules
 build.args-append   V=1
 
 variant	x11 {
-    depends_lib-append  port:imlib2 \
-                        port:freeglut \
-                        port:libGLU \
-                        port:xorg-libX11
+    depends_lib-append \
+        port:imlib2 \
+        port:freeglut \
+        port:libGLU \
+        port:mesa \
+        port:xorg-libX11
+}
 
-	configure.args-delete   --disable-x11
-	configure.args-append	--enable-x11 \
-	                        --x-includes=${prefix}/include \
-	                        --x-libraries=${prefix}/lib 
+if {[variant_isset x11]} {
+    configure.args-append \
+        --enable-x11 --enable-gl \
+        --x-includes=${prefix}/include \
+        --x-libraries=${prefix}/lib
+} else {
+	configure.args-append \
+        --disable-x11 \
+        --disable-gl \
+        --disable-imlib2
 }
 
 compiler.blacklist  llvm-gcc-4.2
 
 test.run            yes
 test.target         check
-
-livecheck.type      regex
-livecheck.url       ${master_sites}
-livecheck.regex     "${name}-(\\d+(?:\\.\\d+)\\.beta(?:\\d+)*)${extract.suffix}"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160224/bfa8b6fd/attachment.html>


More information about the macports-changes mailing list