[62026] trunk/dports/archivers

krischik at macports.org krischik at macports.org
Sun Dec 27 23:33:13 PST 2009


Revision: 62026
          http://trac.macports.org/changeset/62026
Author:   krischik at macports.org
Date:     2009-12-27 23:33:10 -0800 (Sun, 27 Dec 2009)
Log Message:
-----------
libunrar needed for calibre.

Modified Paths:
--------------
    trunk/dports/archivers/libunrar/Portfile

Added Paths:
-----------
    trunk/dports/archivers/libunrar/
    trunk/dports/archivers/libunrar/files/
    trunk/dports/archivers/libunrar/files/makefile.unix.diff

Property Changed:
----------------
    trunk/dports/archivers/libunrar/Portfile

Modified: trunk/dports/archivers/libunrar/Portfile
===================================================================
--- trunk/dports/archivers/unrar/Portfile	2009-12-26 11:54:37 UTC (rev 61972)
+++ trunk/dports/archivers/libunrar/Portfile	2009-12-28 07:33:10 UTC (rev 62026)
@@ -1,57 +1,54 @@
-# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
 # $Id$
+# vim: set fileencoding=utf-8 tabstop=8 shiftwidth=4 softtabstop=4 noexpandtab filetype=tcl :
 
-PortSystem      1.0
+PortSystem	    1.0
+name		    libunrar
+version		    3.9.7
+categories	    archivers
+platforms	    darwin freebsd
+maintainers	    krischik openmaintainer
+description	    Extract, view & test RAR archives
 
-name            unrar
-set my_name     ${name}src
-version         3.9.6
-categories      archivers
-platforms       darwin freebsd
-maintainers     nox openmaintainer
-description     Extract, view & test RAR archives
-
 long_description \
     The unRAR utility is a minor part of the RAR archiver and \
     contains RAR uncompression algorithm. unRAR requires very \
     small volume of memory to operate.
 
-homepage        http://www.rarlab.com/
-master_sites    ${homepage}rar/
-distname        ${my_name}-${version}
+homepage	    http://www.rarlab.com/
+master_sites	    ${homepage}rar/
+distname	    unrarsrc-${version}
+patchfiles	    makefile.unix.diff
+worksrcdir	    unrar
+use_configure	    no
+use_parallel_build  yes
 
-checksums           md5     07d7c5dd3d3b778fc1870a981c43a3d3 \
-                    sha1    b2c0f08060b8ec92f4439d41ed4c613f4b801ed8 \
-                    rmd160  a5b73bf63de0888c17dd2203a40d47d9ba1a0a78
+checksums	    md5     3222f3e6a8c1b79b4f60086d2af3727a \
+		    sha1    b91dd64c82746bb9093f05751ec7f5d3a8812009 \
+		    rmd160  7b13215778df538143573f1ed69f45332999b72f
 
-worksrcdir      ${name}
-
-use_configure no
-
-set CXXFLAGS        ${configure.cxxflags}
-set LDFLAGS         ${configure.ldflags}
+set CXXFLAGS	    "${configure.cxxflags} -DSILENT"
+set LDFLAGS	    "${configure.ldflags}"
 if {[variant_isset universal]} {
     set CXXFLAGS    "${CXXFLAGS} ${configure.universal_cxxflags}"
     set LDFLAGS     "${LDFLAGS} ${configure.universal_ldflags}"
 }
 
-build.env-append CXX=${configure.cxx}
-build.env-append CXXFLAGS="${CXXFLAGS}"
-build.env-append LDFLAGS="${LDFLAGS}"
-build.args      -f makefile.unix
+build.env-append    CXX=${configure.cxx}
+build.env-append    CXXFLAGS="${CXXFLAGS}"
+build.env-append    LDFLAGS="${LDFLAGS}"
+build.args	    -f makefile.unix lib 
 
-use_parallel_build  yes
-
 destroot {
-	set docdir ${prefix}/share/doc/${name}-${version}
+    set docdir ${prefix}/share/doc/${name}-${version}
 
-	xinstall -d ${destroot}${docdir}
-	xinstall ${worksrcpath}/${name} ${destroot}${prefix}/bin
-	xinstall -m 0644 -W ${worksrcpath} license.txt readme.txt ${destroot}${docdir}
+    xinstall -d ${destroot}${docdir}
+    xinstall ${worksrcpath}/${name}.dylib ${destroot}${prefix}/lib
+    xinstall -m 0644 -W ${worksrcpath} license.txt readme.txt ${destroot}${docdir}
 }
 
 variant universal {}
 
-livecheck.type  regex
-livecheck.url   ${homepage}rar_add.htm
-livecheck.regex ${my_name}-(\\d+(?:\\.\\d+)*)
+livecheck.type	    regex
+livecheck.url	    ${homepage}rar_add.htm
+livecheck.regex     unrarsrc-(\\d+(?:\\.\\d+)*)


Property changes on: trunk/dports/archivers/libunrar/Portfile
___________________________________________________________________
Added: svn:mime-type
   + text/x-shellscript

Added: trunk/dports/archivers/libunrar/files/makefile.unix.diff
===================================================================
--- trunk/dports/archivers/libunrar/files/makefile.unix.diff	                        (rev 0)
+++ trunk/dports/archivers/libunrar/files/makefile.unix.diff	2009-12-28 07:33:10 UTC (rev 62026)
@@ -0,0 +1,32 @@
+--- makefile.unix.orig	2009-12-28 08:18:59.000000000 +0100
++++ makefile.unix	2009-12-28 08:28:44.000000000 +0100
+@@ -100,7 +100,7 @@
+ WHAT=UNRAR
+ 
+ UNRAR_OBJ=filestr.o recvol.o rs.o scantree.o
+-LIB_OBJ=filestr.o scantree.o dll.o
++LIB_OBJ=filestr.o recvol.o rs.o scantree.o dll.o
+ 
+ OBJECTS=rar.o strlist.o strfn.o pathfn.o savepos.o smallfn.o global.o file.o filefn.o filcreat.o \
+ 	archive.o arcread.o unicode.o system.o isnt.o crypt.o crc.o rawread.o encname.o \
+@@ -132,8 +132,8 @@
+ 
+ lib:	WHAT=RARDLL
+ lib:	$(OBJECTS) $(LIB_OBJ)
+-	@rm -f libunrar.so
+-	$(LINK) -shared -o libunrar.so $(LDFLAGS) $(OBJECTS) $(LIB_OBJ)
++	@rm -f libunrar.dylib
++	$(LINK) -shared -o libunrar.dylib $(LDFLAGS) $(OBJECTS) $(LIB_OBJ)
+ 
+ install-unrar:
+ 			install unrar $(DESTDIR)/bin
+@@ -142,7 +142,7 @@
+ 			rm -f $(DESTDIR)/bin/unrar
+ 
+ install-lib:
+-		install libunrar.so $(DESTDIR)/lib
++		install libunrar.dylib $(DESTDIR)/lib
+ 
+ uninstall-lib:
+-		rm -f $(DESTDIR)/lib/libunrar.so
++		rm -f $(DESTDIR)/lib/libunrar.dylib
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20091227/221e6caf/attachment.html>


More information about the macports-changes mailing list