[110247] trunk/dports/math/fityk/Portfile
mojca at macports.org
mojca at macports.org
Thu Aug 29 01:20:35 PDT 2013
Revision: 110247
https://trac.macports.org/changeset/110247
Author: mojca at macports.org
Date: 2013-08-29 01:20:34 -0700 (Thu, 29 Aug 2013)
Log Message:
-----------
fityk: upgrade to version 1.2.1 from github, use wxWidgets-3.0, create an app (#38375, #40157)
Modified Paths:
--------------
trunk/dports/math/fityk/Portfile
Modified: trunk/dports/math/fityk/Portfile
===================================================================
--- trunk/dports/math/fityk/Portfile 2013-08-29 08:06:35 UTC (rev 110246)
+++ trunk/dports/math/fityk/Portfile 2013-08-29 08:20:34 UTC (rev 110247)
@@ -1,37 +1,69 @@
# -*- 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
+PortSystem 1.0
+PortGroup app 1.0
+PortGroup github 1.0
+PortGroup wxWidgets 1.0
-name fityk
-version 0.8.6
-categories math
-platforms darwin
-maintainers nomaintainer
-supported_archs i386 ppc
+# the released version has the extra complication that it needs to fetch cmpfit-1.2.tar.gz on the fly
+# other than that there is no reason not to use 1.2.1,
+# but maybe a special addition to version string is needed to make the version info more exact
+# github.setup wojdyr fityk 1.2.1 v
+github.setup wojdyr fityk e63acef802
+name fityk
+version 1.2.1
+categories math
+platforms darwin
+license GPL-2
+maintainers nomaintainer
-description fityk is for peak fitting.
+description fityk is for peak fitting.
-long_description fityk is a program for nonlinear fitting of analytical \
- functions (especially peak-shaped) to data (usually \
- experimental data). There are also people using it to \
- remove the baseline from data, or to display data only.
+long_description fityk is a program for nonlinear fitting of analytical \
+ functions (especially peak-shaped) to data (usually \
+ experimental data). There are also people using it to \
+ remove the baseline from data, or to display data only.
-homepage http://www.unipress.waw.pl/fityk
-master_sites sourceforge
+homepage http://fityk.nieto.pl/
-use_bzip2 yes
+checksums rmd160 12cbcd703c62439f2d0e95b5394277654249722b \
+ sha256 2abb978b7f1ee8f800bf4f34a529163460234c873e423cf12fea2bb9260f1c45
-checksums sha1 9d1063e015aa214c3cc37da15b87a63978733ca2
+# TODO: also apply http://wiki.wxwidgets.org/WxMac-specific_topics#My_app_can.27t_be_brought_to_the_front.21
+app.name fityk
+app.executable fityk
+app.icon ${worksrcpath}/fityk.png
-depends_lib port:boost \
- port:readline \
- port:gnuplot \
- port:ncurses \
- port:wxWidgets \
- port:python26
+wxWidgets.use wxWidgets-3.0
-configure.args --mandir=${prefix}/share/man
-configure.cppflags -I${prefix}/include
-configure.env DYLD_LIBRARY_PATH=${prefix}/lib \
- LD_LIBRARY_PATH=${prefix}/lib
+# WARNING: dvipng command 'dvipng' cannot be run (needed for math display), check the pngmath_dvipng setting
+depends_build port:swig-lua
+
+depends_lib port:boost \
+ port:readline \
+ port:ncurses \
+ port:xylib \
+ port:lua \
+ port:zlib \
+ port:python27 \
+ port:${wxWidgets.port}
+
+depends_run port:gnuplot
+
+use_autoreconf yes
+
+pre-build {
+ if {[variant_isset docs]} {
+ depends_build-append port:py27-sphinx
+ # TODO: use a python PortGroup and variable
+ reinplace "s|sphinx-build|${prefix}/Library/Frameworks/Python.framework/Versions/2.7/bin/sphinx-build|" ${worksrcpath}/doc/Makefile
+ system -W ${worksrcpath}/doc make
+ } else {
+ file mkdir ${worksrcpath}/doc/html/placeholder
+ }
+}
+
+configure.args-append --with-wxdir=${wxWidgets.wxdir}
+
+variant docs description {Build and install documentation} {}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130829/bb722483/attachment.html>
More information about the macports-changes
mailing list