[126477] trunk/dports/devel

larryv at macports.org larryv at macports.org
Fri Oct 10 18:39:43 PDT 2014


Revision: 126477
          https://trac.macports.org/changeset/126477
Author:   larryv at macports.org
Date:     2014-10-10 18:39:43 -0700 (Fri, 10 Oct 2014)
Log Message:
-----------
icmake: Create port

(http://icmake.sourceforge.net)

Added Paths:
-----------
    trunk/dports/devel/icmake/
    trunk/dports/devel/icmake/Portfile
    trunk/dports/devel/icmake/files/
    trunk/dports/devel/icmake/files/fix-BRE-substitutions.patch
    trunk/dports/devel/icmake/files/fix-hierarchy.patch

Added: trunk/dports/devel/icmake/Portfile
===================================================================
--- trunk/dports/devel/icmake/Portfile	                        (rev 0)
+++ trunk/dports/devel/icmake/Portfile	2014-10-11 01:39:43 UTC (rev 126477)
@@ -0,0 +1,48 @@
+# -*- 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                icmake
+version             7.21.01
+categories          devel
+platforms           darwin
+license             GPL-3
+maintainers         larryv openmaintainer
+
+description         The Icmake program maintenance utility
+long_description    Icmake is a hybrid between a 'make' utility and \
+                    a 'shell script' language. Originally, it was \
+                    written to provide a useful tool for automatic \
+                    program maintenance and system administrative \
+                    tasks on old MS-DOS platforms.
+homepage            http://icmake.sourceforge.net
+
+master_sites        sourceforge:project/icmake/icmake/${version}/
+distfiles           icmake_${version}.orig${extract.suffix}
+checksums           rmd160  970fd7f877f6e2f5a79cd0ed7a6202993475091a \
+                    sha256  30a88a6bc0e0cdc6ad0dfe101834cb2babb70a8e72cfb4872b3f40b0d621a54b
+
+patchfiles          fix-BRE-substitutions.patch \
+                    fix-hierarchy.patch
+post-patch {
+    reinplace -W ${worksrcpath} s|__MACPORTS__|${prefix}|g \
+            doc/icmake.1 \
+            doc/icmbuild.1 \
+            doc/icmconf.7 \
+            doc/icmstart.1 \
+            doc/icmstart.rc.7 \
+            etc/icmake/icmake.rc
+}
+
+use_configure       no
+
+build.env           CC=${configure.cc} \
+                    CFLAGS='${configure.cflags} [get_canonical_archflags cc]' \
+                    LDFLAGS='${configure.ldflags} [get_canonical_archflags ld]'
+build.cmd           ./icm_bootstrap
+build.pre_args      ${prefix}
+
+destroot.cmd        ./icm_install
+destroot.target     all
+destroot.destdir    ${destroot}


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

Added: trunk/dports/devel/icmake/files/fix-BRE-substitutions.patch
===================================================================
--- trunk/dports/devel/icmake/files/fix-BRE-substitutions.patch	                        (rev 0)
+++ trunk/dports/devel/icmake/files/fix-BRE-substitutions.patch	2014-10-11 01:39:43 UTC (rev 126477)
@@ -0,0 +1,31 @@
+Index: scripts/conversions
+===================================================================
+--- scripts/conversions.orig
++++ scripts/conversions
+@@ -9,19 +9,19 @@ EXTENSION=`grep '^#' $CONFIG | grep "#de
+             sed 's,.*EXTENSION[[:space:]]\+\"\([^"]*\)".*,'${ROOT}'\1,'`
+ 
+ BINDIR=`grep "#define[[:space:]]\+BINDIR" $CONFIG | \
+-            sed 's,.*BINDIR[[:space:]]\+\"\([^"]\+\)".*,'${ROOT}'\1,'`
++            sed 's|.*BINDIR[[:space:]]\{1,\}\"\([^"]\{1,\}\)".*|'${ROOT}'\1|'`
+ SKELDIR=`grep "#define[[:space:]]\+SKELDIR" $CONFIG | \
+-            sed 's,.*SKELDIR[[:space:]]\+\"\([^"]\+\)".*,'${ROOT}'\1,'`
++            sed 's|.*SKELDIR[[:space:]]\{1,\}\"\([^"]\{1,\}\)".*|'${ROOT}'\1|'`
+ MANDIR=`grep "#define[[:space:]]\+MANDIR" $CONFIG | \
+-            sed 's,.*MANDIR[[:space:]]\+\"\([^"]\+\)".*,'${ROOT}'\1,'`
++            sed 's|.*MANDIR[[:space:]]\{1,\}\"\([^"]\{1,\}\)".*|'${ROOT}'\1|'`
+ LIBDIR=`grep "#define[[:space:]]\+LIBDIR" $CONFIG | \
+-            sed 's,.*LIBDIR[[:space:]]\+\"\([^"]\+\)".*,'${ROOT}'\1,'`
++            sed 's|.*LIBDIR[[:space:]]\{1,\}\"\([^"]\{1,\}\)".*|'${ROOT}'\1|'`
+ CONFDIR=`grep "#define[[:space:]]\+CONFDIR" $CONFIG | \
+-            sed 's,.*CONFDIR[[:space:]]\+\"\([^"]\+\)".*,'${ROOT}'\1,'`
++            sed 's|.*CONFDIR[[:space:]]\{1,\}\"\([^"]\{1,\}\)".*|'${ROOT}'\1|'`
+ DOCDIR=`grep "#define[[:space:]]\+DOCDIR" $CONFIG | \
+-            sed 's,.*DOCDIR[[:space:]]\+\"\([^"]\+\)".*,'${ROOT}'\1,'`
++            sed 's|.*DOCDIR[[:space:]]\{1,\}\"\([^"]\{1,\}\)".*|'${ROOT}'\1|'`
+ DOCDOCDIR=`grep "#define[[:space:]]\+DOCDOCDIR" $CONFIG | \
+-            sed 's,.*DOCDOCDIR[[:space:]]\+\"\([^"]\+\)".*,'${ROOT}'\1,'`
++            sed 's|.*DOCDOCDIR[[:space:]]\{1,\}\"\([^"]\{1,\}\)".*|'${ROOT}'\1|'`
+ 
+ # CPPFLAGS=`grep "#define[[:space:]]\+CPPFLAGS" $CONFIG | sed 's,^.[^"]*,,'`
+ # LDFLAGS=`grep "#define[[:space:]]\+LDFLAGS" $CONFIG | sed 's,^.[^"]*,,'`

Added: trunk/dports/devel/icmake/files/fix-hierarchy.patch
===================================================================
--- trunk/dports/devel/icmake/files/fix-hierarchy.patch	                        (rev 0)
+++ trunk/dports/devel/icmake/files/fix-hierarchy.patch	2014-10-11 01:39:43 UTC (rev 126477)
@@ -0,0 +1,226 @@
+Index: INSTALL.im
+===================================================================
+--- INSTALL.im.orig
++++ INSTALL.im
+@@ -22,10 +22,10 @@
+ // Define EXTENSION as ".exe" when compiling for CYGWIN
+ //#define EXTENSION   ".exe"
+ 
+-#define BINDIR      "usr/bin"
+-#define SKELDIR     "usr/share/icmake"
+-#define MANDIR      "usr/share/man"
+-#define LIBDIR      "usr/lib/icmake"
++#define BINDIR      "bin"
++#define SKELDIR     "share/icmake"
++#define MANDIR      "share/man"
++#define LIBDIR      "libexec/icmake"
+ #define CONFDIR     "etc/icmake"
+-#define DOCDIR      "usr/share/doc/icmake"
+-#define DOCDOCDIR   "usr/share/doc/icmake-doc"
++#define DOCDIR      "share/doc/icmake"
++#define DOCDOCDIR   "share/doc/icmake"
+Index: etc/icmake/icmake.rc
+===================================================================
+--- etc/icmake/icmake.rc.orig
++++ etc/icmake/icmake.rc
+@@ -5,17 +5,17 @@
+ # The location of this file itself is (in order of searching):
+ #       -c configPath       -- a program command-line parameter
+ #       ~/.icmake.rc        -- a configuration file in the user's home dir
+-#       /etc/icmake/icmake.cf
++#       __MACPORTS__/etc/icmake/icmake.cf
+ 
+     # the full path to the icm-comp icmake compiler:
+-icm-comp:   /usr/lib/icmake/icm-comp
++icm-comp:   __MACPORTS__/libexec/icmake/icm-comp
+ 
+     # the full path to the icm-exec icmake executer:
+-icm-exec:   /usr/lib/icmake/icm-exec
++icm-exec:   __MACPORTS__/libexec/icmake/icm-exec
+ 
+     # the full path to the icm-pp icmake pre-processor:
+-icm-pp:     /usr/lib/icmake/icm-pp
++icm-pp:     __MACPORTS__/libexec/icmake/icm-pp
+ 
+     # the skeleton directory:
+-skeletons:  /usr/share/icmake
++skeletons:  __MACPORTS__/share/icmake
+ 
+Index: doc/icmake.1
+===================================================================
+--- doc/icmake.1.orig
++++ doc/icmake.1
+@@ -1067,23 +1067,22 @@ Example:
+ .SH "FILES"
+ 
+ .PP 
+-The mentioned paths are sugestive only and may be installation dependent:
+ .IP o 
+-\fB/usr/bin/icmake\fP: the main \fBicmake\fP program;
++\fB__MACPORTS__/bin/icmake\fP: the main \fBicmake\fP program;
+ .IP o 
+-\fB/usr/bin/icmun\fP: the \fBicmake\fP unassembler;
++\fB__MACPORTS__/bin/icmun\fP: the \fBicmake\fP unassembler;
+ .IP o 
+-\fB/usr/lib/icm\-pp\fP: the preprocessor called by \fBicmake\fP;
++\fB__MACPORTS__/libexec/icm\-pp\fP: the preprocessor called by \fBicmake\fP;
+ .IP o 
+-\fB/usr/lib/icm\-comp\fP: the compiler called by \fBicmake\fP;
++\fB__MACPORTS__/libexec/icm\-comp\fP: the compiler called by \fBicmake\fP;
+ .IP o 
+-\fB/usr/lib/icm\-exec\fP: the byte\-code interpreter called by \fBicmake\fP;
++\fB__MACPORTS__/libexec/icm\-exec\fP: the byte\-code interpreter called by \fBicmake\fP;
+ 
+ .PP 
+ .SH "EXAMPLES"
+ 
+ .PP 
+-The distribution (usually in \fI/usr/share/doc/icmake\fP) contains a
++The distribution (in \fI__MACPORTS__/share/doc/icmake\fP) contains a
+ directory \fIexamples\fP containing various examples of \fBicmake\fP script\&. Note in
+ particular the \fIexamples/icmbuild\fP subdirectory containing a general script
+ for \fBC++\fP and \fBC\fP program maintenance\&.
+Index: doc/icmbuild.1
+===================================================================
+--- doc/icmbuild.1.orig
++++ doc/icmbuild.1
+@@ -118,12 +118,11 @@ provided to the \fBicmbuild\fP script\&.
+ .SH "FILES"
+ 
+ .PP 
+-The mentioned paths are sugestive only and may be installation dependent:
+ .IP o 
+-\fB/usr/share/icmake/icmconf\fP
++\fB__MACPORTS__/share/icmake/icmconf\fP
+ Example of a \fBicmbuild\fP configuration file;
+ .IP o 
+-\fB/usr/share/icmake/CLASSES\fP
++\fB__MACPORTS__/share/icmake/CLASSES\fP
+ Example of a \fBicmbuild\fP \fICLASSES\fP file\&.
+ 
+ .PP 
+Index: doc/icmconf.7
+===================================================================
+--- doc/icmconf.7.orig
++++ doc/icmconf.7
+@@ -474,17 +474,16 @@ The extension of object modules created 
+ 
+ .PP 
+ .SH "FILES"
+-The mentioned paths are sugestive only and may be installation dependent:
+ .IP o 
+-\fB/usr/share/icmake/CLASSES\fP
++\fB__MACPORTS__/share/icmake/CLASSES\fP
+ .br 
+ Example of an \fBicmconf\fP \fICLASSES\fP file\&.
+ .IP o 
+-\fB/usr/share/icmake/icmconf\fP
++\fB__MACPORTS__/share/icmake/icmconf\fP
+ .br 
+ Default skeleton \fBicmbuild\fP resource file\&.
+ .IP o 
+-\fB/etc/icmake\fP
++\fB__MACPORTS__/etc/icmake\fP
+ .br 
+ Directory containing the default system\-wide \fBicmake\fP(1)
+ configuration files (like \fIVERSION\fP and \fIicmstart\&.rc\fP)
+Index: doc/icmstart.1
+===================================================================
+--- doc/icmstart.1.orig
++++ doc/icmstart.1
+@@ -18,7 +18,7 @@ or `\fIlibrary\fP\(cq\& may be specified
+ \fBicmbuild\fP(1) script\&. 
+ .PP 
+ Skeleton files for the main directory and subdirectories, by default listed in
+-the file \fI/etc/icmake/icmstart\&.rc\fP, may be installed as well
++the file \fI__MACPORTS__/etc/icmake/icmstart\&.rc\fP, may be installed as well
+ (cf\&. \fBicmstart\&.rc\fP(7))\&.
+ .PP 
+ After changing to the directory created by \fBicmstart\fP the \fBicmbuild\fP(1)
+@@ -34,7 +34,7 @@ must be the first arguments of \fIicmsta
+ .br 
+ Use the configuration files (\fIicmstart\&.rc, AUTHOR,
+ YEARS\fP and \fIVERSION\fP) if found in `confpath\(cq\& rather than in
+-\fI~/\&.icmake\fP and/or \fI/etc/icmake/\fP\&. Once a file is found it is used
++\fI~/\&.icmake\fP and/or \fI__MACPORTS__/etc/icmake/\fP\&. Once a file is found it is used
+ allowing partial overrides of the default files provided by
+ \fBicmake\fP(1)\&.
+ .IP o 
+@@ -57,7 +57,7 @@ full directory and its subdirectories wi
+ \fI\-s skeleton\-path\fP 
+ .br 
+ By default skeleton files are listed in the skeleton resource file
+-\fI/usr/share/icmake/icmstart\&.rc\fP\&. Alternatively, the skeleton
++\fI__MACPORTS__/share/icmake/icmstart\&.rc\fP\&. Alternatively, the skeleton
+ resource file may be specified by the \fIICM\fP environment variable,
+ which \-in turn\- may be overruled by the path specified with the \fI\-s\fP
+ option\&. The skeleton path may be specified as a full file\-path or as a
+@@ -73,7 +73,7 @@ Skeleton resource files may contain comm
+ with the hash\-mark (\fI#\fP)) which is ignored, and should otherwise contain
+ specifications of resource \fBs\fP to install\&.
+ .PP 
+-The default resource file is \fI/etc/icmake/icmstart\&.rc\fP, contains
++The default resource file is \fI__MACPORTS__/etc/icmake/icmstart\&.rc\fP, contains
+ .nf 
+ 
+     CLASSES
+@@ -97,7 +97,7 @@ recognized and processed by \fIicmstart\
+ If the \fI\-c\fP option was specified configuration files found in the path
+ specified at this option are used\&. If not specified or if a file isn\(cq\&t
+ found then the path \fI~/icmake\fP is inspected\&. If a configuration file isn\(cq\&t
+-found in \fI~/icmake\fP either, configuration files in \fI/etc/icmake\fP are used\&.
++found in \fI~/icmake\fP either, configuration files in \fI__MACPORTS__/etc/icmake\fP are used\&.
+ .PP 
+ Configuration files are not required for the proper operation of \fIicmstart\fP\&.
+ When absent \fIicmstart\fP performs the following  default actions:
+@@ -155,15 +155,14 @@ initial project directory, \fIicmconf\fP
+ )
+ .PP 
+ .SH "FILES"
+-The mentioned paths are sugestive only and may be installation dependent:
+ .IP o 
+-\fB/usr/share/icmake/icmconf\fP
++\fB__MACPORTS__/share/icmake/icmconf\fP
+ Example of a \fBicmbuild\fP configuration file;
+ .IP o 
+-\fB/usr/share/icmake/CLASSES\fP
++\fB__MACPORTS__/share/icmake/CLASSES\fP
+ Example of a \fBicmbuild\fP \fICLASSES\fP file\&.
+ .IP o 
+-\fB/usr/share/icmake/icmstart\&.rc\fP
++\fB__MACPORTS__/share/icmake/icmstart\&.rc\fP
+ Default skeleton resource file\&.
+ 
+ .PP 
+Index: doc/icmstart.rc.7
+===================================================================
+--- doc/icmstart.rc.7.orig
++++ doc/icmstart.rc.7
+@@ -10,7 +10,7 @@ icmstart\&.rc \- The icmstart(1) resourc
+ The \fBicmstart\&.rc\fP file defines the initial files of a program that are
+ installed by \fBicmstart\fP(1)\&. 
+ .PP 
+-By default \fBicmstart\&.rc\fP is found in \fI/etc/icmake/icmstart\&.rc\fP, but if a
++By default \fBicmstart\&.rc\fP is found in \fI__MACPORTS__/etc/icmake/icmstart\&.rc\fP, but if a
+ file \fI$HOME/\&.icmake/icmstart\&.rc\fP is found then the latter file is used by
+ \fBicmstart\fP(1)\&. \fI$HOME/\&.icmake/icmstart\&.rc\fP in turn is overruled by
+ specifying a \fI\-c\fP option when invoking \fBicmstart\fP(1)\&.
+@@ -115,15 +115,14 @@ Empty lines are skipped\&.
+ 
+ .PP 
+ .SH "FILES"
+-The mentioned paths are sugestive only and may be installation dependent:
+ .IP o 
+-\fB/usr/share/icmake/icmconf\fP
++\fB__MACPORTS__/share/icmake/icmconf\fP
+ Example of an \fBicmbuild\fP configuration file;
+ .IP o 
+-\fB/usr/share/icmake/CLASSES\fP
++\fB__MACPORTS__/share/icmake/CLASSES\fP
+ Example of an \fBicmbuild\fP \fICLASSES\fP file\&.
+ .IP o 
+-\fB/usr/share/icmake/icmstart\&.rc\fP
++\fB__MACPORTS__/share/icmake/icmstart\&.rc\fP
+ Default skeleton resource file\&.
+ 
+ .PP 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20141010/83bd5d67/attachment-0001.html>


More information about the macports-changes mailing list