Revision
87373
Author
ryandesign@macports.org
Date
2011-11-18 17:32:24 -0800 (Fri, 18 Nov 2011)

Log Message

pure: make pure-mode.el a subport; delete standalone pure-mode.el port; no change to installed files

Modified Paths

Removed Paths

Diff

Modified: trunk/dports/lang/pure/Portfile (87372 => 87373)


--- trunk/dports/lang/pure/Portfile	2011-11-19 01:15:32 UTC (rev 87372)
+++ trunk/dports/lang/pure/Portfile	2011-11-19 01:32:24 UTC (rev 87373)
@@ -4,7 +4,7 @@
 PortSystem              1.0
 
 name                    pure
-# Keep the versions of pure, pure-mode.el, and pure-docs in sync.
+# Keep the versions of pure and pure-docs in sync.
 version                 0.48
 categories              lang
 platforms               darwin
@@ -108,3 +108,30 @@
 } else {
     livecheck.type              none
 }
+
+subport pure-mode.el {
+    categories-append           editors
+    license                     GPL-3+
+    supported_archs             noarch
+    
+    description                 Emacs mode for editing Pure files
+    
+    long_description            ${subport} is an ${description}.
+    
+    depends_build               port:gmp \
+                                port:llvm \
+                                port:mpfr \
+                                port:readline
+    
+    depends_lib                 port:emacs
+    
+    build {}
+    
+    destroot.target             install-el install-elc
+    
+    post-destroot {
+        set docdir ${destroot}${prefix}/share/doc/${subport}
+        xinstall -d ${docdir}
+        xinstall -m 644 ${worksrcpath}/COPYING ${docdir}
+    }
+}