[67694] trunk/dports/kde

ryandesign at macports.org ryandesign at macports.org
Sun May 16 01:11:06 PDT 2010


Revision: 67694
          http://trac.macports.org/changeset/67694
Author:   ryandesign at macports.org
Date:     2010-05-16 01:11:04 -0700 (Sun, 16 May 2010)
Log Message:
-----------
dictconv: new port, version 0.2, as requested in #24907

Added Paths:
-----------
    trunk/dports/kde/dictconv/
    trunk/dports/kde/dictconv/Portfile
    trunk/dports/kde/dictconv/files/
    trunk/dports/kde/dictconv/files/patch-typedefs.diff
    trunk/dports/kde/dictconv/files/typedefs.h

Added: trunk/dports/kde/dictconv/Portfile
===================================================================
--- trunk/dports/kde/dictconv/Portfile	                        (rev 0)
+++ trunk/dports/kde/dictconv/Portfile	2010-05-16 08:11:04 UTC (rev 67694)
@@ -0,0 +1,45 @@
+# $Id$
+
+PortSystem                  1.0
+
+name                        dictconv
+version                     0.2
+categories                  kde
+platforms                   darwin
+maintainers                 ryandesign openmaintainer
+license                     GPL-2
+homepage                    http://ktranslator.sourceforge.net/
+master_sites                sourceforge:ktranslator
+use_bzip2                   yes
+
+description                 converts dictionary file types
+
+long_description            ${name} converts a dictionary from one file type \
+                            to another.
+
+checksums                   md5     ceaf89a8d0f15cf48f77d0c553b6f895 \
+                            sha1    7a38b0268036aa80d7d794080cb9e28d9d45c6f9 \
+                            rmd160  298af2af69600f9e336f3c18785f4d7bfc69c7bd
+
+depends_lib                 port:libxml2
+
+post-extract {
+    copy ${filespath}/typedefs.h ${worksrcpath}/src
+}
+
+patchfiles                  patch-typedefs.diff
+
+post-destroot {
+    set docdir ${destroot}${prefix}/share/doc/${name}
+    xinstall -d ${docdir}
+    xinstall -m 644 -W ${worksrcpath} \
+        AUTHORS \
+        COPYING \
+        ChangeLog \
+        NEWS \
+        README \
+        TODO \
+        ${docdir}
+}
+
+livecheck.distname          ${name}


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

Added: trunk/dports/kde/dictconv/files/patch-typedefs.diff
===================================================================
--- trunk/dports/kde/dictconv/files/patch-typedefs.diff	                        (rev 0)
+++ trunk/dports/kde/dictconv/files/patch-typedefs.diff	2010-05-16 08:11:04 UTC (rev 67694)
@@ -0,0 +1,44 @@
+--- src/babylon.h.orig	2007-03-02 09:43:00.000000000 -0600
++++ src/babylon.h	2010-05-16 02:58:22.000000000 -0500
+@@ -27,6 +27,8 @@
+ #include <string>
+ #include <vector>
+ 
++#include "typedefs.h"
++
+ const std::string bgl_language[] = {
+ 	"English", 
+ 	"French",
+--- src/dictbuilder.h.orig	2007-02-17 08:48:04.000000000 -0600
++++ src/dictbuilder.h	2010-05-16 02:58:13.000000000 -0500
+@@ -23,6 +23,8 @@
+ #include <string>
+ #include <vector>
+ 
++#include "typedefs.h"
++
+ 
+ class DictBuilder
+ {
+--- src/sdict.h.orig	2007-02-17 08:48:04.000000000 -0600
++++ src/sdict.h	2010-05-16 02:58:46.000000000 -0500
+@@ -24,6 +24,8 @@
+ #include <fstream>
+ #include <vector>
+ 
++#include "typedefs.h"
++
+ using namespace std;
+ 
+ typedef unsigned char uchar;
+--- src/stardict.h.orig	2007-02-17 08:48:04.000000000 -0600
++++ src/stardict.h	2010-05-16 02:58:33.000000000 -0500
+@@ -24,6 +24,8 @@
+ #include <fstream>
+ #include <vector>
+ 
++#include "typedefs.h"
++
+ using namespace std;
+ 
+ /**

Added: trunk/dports/kde/dictconv/files/typedefs.h
===================================================================
--- trunk/dports/kde/dictconv/files/typedefs.h	                        (rev 0)
+++ trunk/dports/kde/dictconv/files/typedefs.h	2010-05-16 08:11:04 UTC (rev 67694)
@@ -0,0 +1,16 @@
+#ifndef TYPEDEFS_H
+#define TYPEDEFS_H
+
+#ifndef ulong
+typedef unsigned long   ulong;
+#endif
+
+#ifndef uint
+typedef unsigned int    uint;
+#endif
+
+#ifndef ushort
+typedef unsigned short  ushort;
+#endif
+
+#endif
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100516/03a14b01/attachment.html>


More information about the macports-changes mailing list