[118680] users/mojca/ports
mojca at macports.org
mojca at macports.org
Mon Apr 7 16:30:46 PDT 2014
Revision: 118680
https://trac.macports.org/changeset/118680
Author: mojca at macports.org
Date: 2014-04-07 16:30:45 -0700 (Mon, 07 Apr 2014)
Log Message:
-----------
mojca/root: add a simple 'port select' functionality, move bin and man pages, create a symlink root5/root6 in bin
Modified Paths:
--------------
users/mojca/ports/science/root5/Portfile
users/mojca/ports/science/root6/Portfile
users/mojca/ports/sysutils/root_select/Portfile
Added Paths:
-----------
users/mojca/ports/science/root5/files/root5
users/mojca/ports/science/root6/files/
users/mojca/ports/science/root6/files/root6
Modified: users/mojca/ports/science/root5/Portfile
===================================================================
--- users/mojca/ports/science/root5/Portfile 2014-04-07 23:05:34 UTC (rev 118679)
+++ users/mojca/ports/science/root5/Portfile 2014-04-07 23:30:45 UTC (rev 118680)
@@ -4,6 +4,7 @@
PortSystem 1.0
PortGroup active_variants 1.1
+PortGroup select 1.0
name root5
version 5.34.18
@@ -39,6 +40,12 @@
port:lzma
# port:freetype
+depends_run port:root_select
+
+# TODO: the file ${filespath}/${name} would have to be generated on the fly instead
+select.group root
+select.file ${filespath}/${name}
+
post-patch {
# reinplace "s|-lfreetype| \`freetype-config --libs\`|g" ${worksrcpath}/config/root-config.in
reinplace "s|\"/usr/include\"|\"${prefix}/include /usr/include\"|g" ${worksrcpath}/configure
@@ -62,9 +69,8 @@
}
# port specific location. For 'port select'
-set install_bindir ${prefix}/libexec/root${version_major}
-# Install directly into prefix
-#set install_bindir ${prefix}/bin
+set install_bindir "${prefix}/libexec/root${version_major}/bin"
+set install_mandir "${prefix}/libexec/root${version_major}/share/man"
configure.args --bindir=${install_bindir}\
--incdir=${prefix}/include/root${version_major}\
@@ -74,7 +80,7 @@
--tutdir=${prefix}/share/root${version_major}/tutorials \
--etcdir=${prefix}/etc/root${version_major} \
--datadir=${prefix}/share/root${version_major} \
- --mandir=${prefix}/share/man/root${version_major} \
+ --mandir=${install_mandir} \
--disable-builtin-glew \
--disable-builtin-pcre \
--disable-builtin-zlib \
@@ -140,6 +146,11 @@
}
}
+post-destroot {
+ # create a symlink 'root5' in bin
+ ln -s ${prefix}/${install_bindir}/root ${destroot}${prefix}/bin/root${version_major}
+}
+
universal_variant no
default_variants +ssl +xml +gsl +minuit2 +tmva +roofit +graphviz +opengl +soversion
Added: users/mojca/ports/science/root5/files/root5
===================================================================
--- users/mojca/ports/science/root5/files/root5 (rev 0)
+++ users/mojca/ports/science/root5/files/root5 2014-04-07 23:30:45 UTC (rev 118680)
@@ -0,0 +1 @@
+libexec/root5/bin/root
Modified: users/mojca/ports/science/root6/Portfile
===================================================================
--- users/mojca/ports/science/root6/Portfile 2014-04-07 23:05:34 UTC (rev 118679)
+++ users/mojca/ports/science/root6/Portfile 2014-04-07 23:30:45 UTC (rev 118680)
@@ -6,7 +6,9 @@
PortGroup active_variants 1.1
PortGroup cmake 1.0
PortGroup github 1.0
+PortGroup select 1.0
+
# TODO: try to figure out if one could also build root6 on < 10.9
# if {(${os.major} < 13 && ! [info exists configure.cxx_stdlib]) || (! [file exists /usr/lib/libc++.dylib])} {
if {${os.major} < 13 } {
@@ -56,15 +58,25 @@
port:lzma
# port:freetype
+depends_run port:root_select
+
+# TODO: the file ${filespath}/${name} would have to be generated on the fly instead
+select.group root
+select.file ${filespath}/${name}
+
+set install_bindir "libexec/root${version_major}/bin"
+set install_mandir "libexec/root${version_major}/share/man"
+
configure.args-append \
-Dgnuinstall=ON \
- -DCMAKE_INSTALL_BINDIR="libexec/root${version_major}" \
+ -DCMAKE_INSTALL_BINDIR="${install_bindir}" \
-DCMAKE_INSTALL_LIBDIR="lib/root${version_major}" \
-DCMAKE_INSTALL_INCLUDEDIR="include/root${version_major}" \
-DCMAKE_INSTALL_SYSCONFDIR="etc/root${version_major}" \
-DCMAKE_INSTALL_DATAROOTDIR="share/root${version_major}" \
-DCMAKE_INSTALL_DATADIR="share/root${version_major}" \
-DCMAKE_INSTALL_DOCDIR="share/doc/root${version_major}" \
+ -DCMAKE_INSTALL_MANDIR="${install_mandir}" \
-Dfortran=OFF \
-Dbuiltin_freetype=ON \
-Dbuiltin_glew=OFF \
@@ -135,6 +147,11 @@
}
}
+post-destroot {
+ # create a symlink 'root6' in bin
+ ln -s ${prefix}/${install_bindir}/root ${destroot}${prefix}/bin/root${version_major}
+}
+
universal_variant no
default_variants +ssl +xml +gsl +minuit2 +tmva +roofit +graphviz +opengl +soversion
Added: users/mojca/ports/science/root6/files/root6
===================================================================
--- users/mojca/ports/science/root6/files/root6 (rev 0)
+++ users/mojca/ports/science/root6/files/root6 2014-04-07 23:30:45 UTC (rev 118680)
@@ -0,0 +1 @@
+libexec/root6/bin/root
Modified: users/mojca/ports/sysutils/root_select/Portfile
===================================================================
--- users/mojca/ports/sysutils/root_select/Portfile 2014-04-07 23:05:34 UTC (rev 118679)
+++ users/mojca/ports/sysutils/root_select/Portfile 2014-04-07 23:30:45 UTC (rev 118680)
@@ -5,6 +5,7 @@
PortGroup select 1.0
name root_select
+conflicts root
version 1.0
categories sysutils science
platforms darwin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140407/9061a467/attachment.html>
More information about the macports-changes
mailing list