[73040] trunk/dports/textproc

ryandesign at macports.org ryandesign at macports.org
Mon Nov 1 16:21:22 PDT 2010


Revision: 73040
          http://trac.macports.org/changeset/73040
Author:   ryandesign at macports.org
Date:     2010-11-01 16:21:19 -0700 (Mon, 01 Nov 2010)
Log Message:
-----------
convertlit: new port, version 1.8; needed for ebook-tools; see #27091

Added Paths:
-----------
    trunk/dports/textproc/convertlit/
    trunk/dports/textproc/convertlit/Portfile
    trunk/dports/textproc/convertlit/files/
    trunk/dports/textproc/convertlit/files/Makefile
    trunk/dports/textproc/convertlit/files/patch-clit-Makefile.diff
    trunk/dports/textproc/convertlit/files/patch-clit-hexdump.c.diff

Added: trunk/dports/textproc/convertlit/Portfile
===================================================================
--- trunk/dports/textproc/convertlit/Portfile	                        (rev 0)
+++ trunk/dports/textproc/convertlit/Portfile	2010-11-01 23:21:19 UTC (rev 73040)
@@ -0,0 +1,60 @@
+# -*- 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                    convertlit
+version                 1.8
+set my_version          [strsed ${version} {g/\.//}]
+categories              textproc
+platforms               darwin
+maintainers             ryandesign openmaintainer
+license                 GPL-2
+
+description             converts Microsoft Reader eBooks into open format
+
+long_description        Convert LIT (clit) converts eBooks in Microsoft \
+                        Reader format into open format for use with software \
+                        or devices which are not directly compatible with \
+                        Microsoft's Reader.
+
+homepage                http://www.convertlit.com/
+master_sites            ${homepage}
+distname                ${name}${my_version}src
+use_zip                 yes
+
+checksums               sha1    0fa9aead468bd8640c49374d46d78d2a3e79489f \
+                        rmd160  6104a7d951ed60ea73705e401be8b55633ea2d47
+
+depends_lib             port:libtommath
+
+extract.mkdir           yes
+post-extract {
+    move ${worksrcpath}/clit${my_version} ${worksrcpath}/clit
+    copy ${filespath}/Makefile ${worksrcpath}
+    
+    # DOS to UNIX line endings so we can patch
+    reinplace "s|\r||g" ${worksrcpath}/clit/Makefile
+}
+
+patchfiles              patch-clit-Makefile.diff \
+                        patch-clit-hexdump.c.diff
+
+use_configure           no
+
+configure.cppflags-append -I${prefix}/include/libtommath
+
+build.args              CC="${configure.cc} ${configure.cc_archflags}" \
+                        CPPFLAGS="${configure.cppflags}" \
+                        LDFLAGS="${configure.ldflags}" \
+                        PREFIX="${prefix}"
+
+destroot {
+    xinstall ${worksrcpath}/clit/clit ${destroot}${prefix}/bin
+    xinstall -d ${destroot}${prefix}/share/doc/${name}
+    xinstall -m 644 ${worksrcpath}/README ${destroot}${prefix}/share/doc/${name}
+}
+
+livecheck.type          regex
+livecheck.url           ${homepage}download.php
+livecheck.regex         {([0-9.]+) source}


Property changes on: trunk/dports/textproc/convertlit/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/textproc/convertlit/files/Makefile
===================================================================
--- trunk/dports/textproc/convertlit/files/Makefile	                        (rev 0)
+++ trunk/dports/textproc/convertlit/files/Makefile	2010-11-01 23:21:19 UTC (rev 73040)
@@ -0,0 +1,15 @@
+# $Id$
+
+.PHONY: all clean
+
+all: clit/clit
+
+clean:
+	$(MAKE) clean -C lib
+	$(MAKE) clean -C clit
+
+lib/openclit.a:
+	$(MAKE) -C lib
+
+clit/clit: lib/openclit.a
+	$(MAKE) -C clit


Property changes on: trunk/dports/textproc/convertlit/files/Makefile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/textproc/convertlit/files/patch-clit-Makefile.diff
===================================================================
--- trunk/dports/textproc/convertlit/files/patch-clit-Makefile.diff	                        (rev 0)
+++ trunk/dports/textproc/convertlit/files/patch-clit-Makefile.diff	2010-11-01 23:21:19 UTC (rev 73040)
@@ -0,0 +1,14 @@
+--- clit/Makefile.orig	2010-11-01 18:07:34.000000000 -0500
++++ clit/Makefile	2010-11-01 18:08:31.000000000 -0500
+@@ -1,9 +1,9 @@
+ all: clit
+ 
+-CFLAGS=-funsigned-char -Wall -O2 -I ../libtommath-0.30/ -I ../lib -I ../lib/des -I .
++CFLAGS=-funsigned-char -Wall -O2 -I ../lib -I ../lib/des -I .
+ clean:
+ 	rm -f *.o clit
+ 
+ clit: clit.o hexdump.o drm5.o explode.o transmute.o display.o utils.o manifest.o ../lib/openclit.a 
+-	gcc -o clit $^  ../libtommath-0.30/libtommath.a
++	$(CC) -o clit $^ $(LDFLAGS) -ltommath
+ 

Added: trunk/dports/textproc/convertlit/files/patch-clit-hexdump.c.diff
===================================================================
--- trunk/dports/textproc/convertlit/files/patch-clit-hexdump.c.diff	                        (rev 0)
+++ trunk/dports/textproc/convertlit/files/patch-clit-hexdump.c.diff	2010-11-01 23:21:19 UTC (rev 73040)
@@ -0,0 +1,10 @@
+--- clit/hexdump.c.orig	2004-05-14 23:09:14.000000000 -0500
++++ clit/hexdump.c	2010-11-01 17:46:28.000000000 -0500
+@@ -16,6 +16,7 @@
+ #include <ctype.h>
+ #include <stdio.h>
+ #include <stdlib.h>
++#include <string.h>
+ 
+ typedef unsigned char byte;
+ 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20101101/4c4715d7/attachment.html>


More information about the macports-changes mailing list