[33952] trunk/dports/x11

gui_dos at macports.org gui_dos at macports.org
Fri Feb 8 06:44:06 PST 2008


Revision: 33952
          http://trac.macosforge.org/projects/macports/changeset/33952
Author:   gui_dos at macports.org
Date:     2008-02-08 06:43:55 -0800 (Fri, 08 Feb 2008)

Log Message:
-----------
A first port of ChmSee

Added Paths:
-----------
    trunk/dports/x11/chmsee/
    trunk/dports/x11/chmsee/Portfile

Added: trunk/dports/x11/chmsee/Portfile
===================================================================
--- trunk/dports/x11/chmsee/Portfile	                        (rev 0)
+++ trunk/dports/x11/chmsee/Portfile	2008-02-08 14:43:55 UTC (rev 33952)
@@ -0,0 +1,44 @@
+# $Id$
+
+PortSystem 1.0
+
+name            chmsee
+version         1.0.0
+description     Viewer for CHM files.
+long_description ChmSee is an HTML Help viewer for Unix/Linux. \
+                It is based on CHMLIB and use Gtk2+ as frontend \
+                toolkit. Because of using gecko as HTML rendering \
+                engine, ChmSee can support rich features of modern \
+                HTML page, such as CSS and JavaScript.
+maintainers     nomaintainer
+categories      x11
+platforms       darwin
+homepage        http://chmsee.gro.clinux.org/
+master_sites    http://gro.clinux.org/frs/download.php/2040/
+checksums       md5 65fddfe20f4a1537e539998201a0ccfd
+depends_build   port:intltool
+depends_lib     port:gtk2 \
+                port:libglade2 \
+                port:chmlib \
+                port:openssl \
+                port:firefox-x11
+configure.args  --with-openssl=${prefix}
+configure.cflags-append -I${prefix}/include/openssl
+configure.ldflags-append -lssl -lcrypto
+
+post-extract {
+    reinplace "s|defined(__linux__)|defined(__APPLE__)|" ${worksrcpath}/src/chmfile.c
+}
+
+post-destroot {
+        # In order to call gecko, chmsee must be installed in the same directory as FireFox.
+        # Move it and put a symlink in the bin directory
+        if { [catch {set ff [registry_active "firefox-x11"]} result]} {
+                ui_err "FireFox is not active: $result"
+        } else {
+                set ffver [lindex $ff 0 1]
+                xinstall -d ${destroot}${prefix}/lib/firefox-${ffver}
+                move ${destroot}${prefix}/bin/chmsee ${destroot}${prefix}/lib/firefox-${ffver}
+                ln -s ${prefix}/lib/firefox-${ffver}/chmsee ${destroot}${prefix}/bin
+        }
+}


Property changes on: trunk/dports/x11/chmsee/Portfile
___________________________________________________________________
Name: svn:keywords
   + Id
Name: svn:eol-style
   + native

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080208/5c8f8695/attachment-0001.html


More information about the macports-changes mailing list