[90817] trunk/dports/graphics/pgplot/Portfile
ryandesign at macports.org
ryandesign at macports.org
Wed Mar 14 18:58:47 PDT 2012
Revision: 90817
https://trac.macports.org/changeset/90817
Author: ryandesign at macports.org
Date: 2012-03-14 18:58:46 -0700 (Wed, 14 Mar 2012)
Log Message:
-----------
pgplot: whitespace changes and reformatting; see #33627
Modified Paths:
--------------
trunk/dports/graphics/pgplot/Portfile
Modified: trunk/dports/graphics/pgplot/Portfile
===================================================================
--- trunk/dports/graphics/pgplot/Portfile 2012-03-15 01:54:17 UTC (rev 90816)
+++ trunk/dports/graphics/pgplot/Portfile 2012-03-15 01:58:46 UTC (rev 90817)
@@ -1,44 +1,51 @@
# -*- 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
-name pgplot
-conflicts miriad
-version 5.2.2
-revision 6
-categories graphics devel
-maintainers mcalhoun openmaintainer
-description C/Fortran graphics library
-long_description \
- The PGPLOT Graphics Subroutine Library is a Fortran- or C-callable, \
- device-independent graphics package for making simple scientific \
- graphs. It is intended for making graphical images of publication \
- quality with minimum effort on the part of the user. For most \
- applications, the program can be device-independent, and the output can \
- be directed to the appropriate device at run time.
+name pgplot
+conflicts miriad
+version 5.2.2
+revision 6
+categories graphics devel
+platforms darwin
+maintainers mcalhoun openmaintainer
-platforms darwin
+description C/Fortran graphics library
-homepage http://www.astro.caltech.edu/~tjp/pgplot/
-master_sites ftp://ftp.astro.caltech.edu/pub/pgplot/
+long_description The PGPLOT Graphics Subroutine Library is a Fortran- or \
+ C-callable, device-independent graphics package for making \
+ simple scientific graphs. It is intended for making \
+ graphical images of publication quality with minimum \
+ effort on the part of the user. For most applications, the \
+ program can be device-independent, and the output can be \
+ directed to the appropriate device at run time.
-distname ${name}[join [split ${version} .] ""]
-worksrcdir ${name}
-configure.dir ${workpath}/build
-build.dir ${configure.dir}
+homepage http://www.astro.caltech.edu/~tjp/pgplot/
+master_sites ftp://ftp.astro.caltech.edu/pub/pgplot/
-checksums \
- md5 e8a6e8d0d5ef9d1709dfb567724525ae \
- sha1 1f1c9aa17eeec9a2fb23fd15a0e4a91dcc49ddc1 \
- rmd160 4c21cad6613772f4104c65ac3d8d9a42e3c4afe1
+distname ${name}[join [split ${version} .] ""]
+worksrcdir ${name}
+configure.dir ${workpath}/build
+build.dir ${configure.dir}
-patchfiles patch-makemake.diff patch-drivers.list.patch patch-proccom.c.diff
-depends_lib port:libpng port:zlib port:xorg-libX11
-depends_build bin:perl:perl5 port:pkgconfig
+checksums md5 e8a6e8d0d5ef9d1709dfb567724525ae \
+ sha1 1f1c9aa17eeec9a2fb23fd15a0e4a91dcc49ddc1 \
+ rmd160 4c21cad6613772f4104c65ac3d8d9a42e3c4afe1
+depends_build bin:perl:perl5 \
+ port:pkgconfig
+
+depends_lib port:libpng \
+ port:zlib \
+ port:xorg-libX11
+
+patchfiles patch-makemake.diff \
+ patch-drivers.list.patch \
+ patch-proccom.c.diff
+
# Tell the compiler not to treat backslash characters as C-style escape sequences.
-configure.fcflags-append -fno-backslash
+configure.fcflags-append -fno-backslash
set compat_version [join [lrange [split ${version} .] 0 0] .]
@@ -58,7 +65,7 @@
copy ${worksrcpath}/drivers.list ${build.dir}
- set drivers "GIF VGIF LATEX PNG TPNG PS VPS CPS VCPS"
+ set drivers "GIF VGIF LATEX PNG TPNG PS VPS CPS VCPS"
if {![variant_isset no_x11]} {
# XDISP does not work because the program figdisp can not be found.
@@ -84,45 +91,45 @@
set x11Libs [exec pkg-config x11 --libs-only-l]
eval configure.cppflags-append [exec pkg-config x11 --cflags]
} else {
- set x11Libs ""
+ set x11Libs ""
}
if {[variant_isset aquaterm]} {
- set aqtLibs "-laquaterm -Wl,-framework -Wl,Foundation"
+ set aqtLibs "-laquaterm -Wl,-framework -Wl,Foundation"
} else {
- set aqtLibs ""
+ set aqtLibs ""
}
# Create configuration file.
# For a description of options, see ${worksrcpath}/sys_linux/g77_gcc.conf
- lappend options XINCL "${configure.cppflags}"
- lappend options MOTIF_INCL ""
- lappend options ATHENA_INCL ""
- lappend options TK_INCL ""
- lappend options RV_INCL ""
- lappend options FCOMPL "${configure.fc}"
- lappend options FFLAGC "${configure.fcflags}"
- lappend options FFLAGD ""
- lappend options CCOMPL "${configure.cc}"
- lappend options CFLAGC "${configure.cppflags} ${configure.cflags}"
- lappend options CFLAGD ""
- lappend options PGBIND_FLAGS "bsd"
- lappend options LIBS "${configure.ldflags} ${x11Libs} ${aqtLibs}"
- lappend options MOTIF_LIBS ""
- lappend options ATHENA_LIBS ""
- lappend options TK_LIBS ""
- lappend options RANLIB "/usr/bin/ranlib"
- lappend options SHARED_LIB "libpgplot${version}.dylib"
- lappend options SHARED_LD "${configure.fc} ${shlib_opts} ${configure.ldflags} ${x11Libs} -install_name ${prefix}/lib/libpgplot${compat_version}.dylib"
- lappend options SHARED_LIB_LIBS "${configure.ldflags} -lpng ${aqtLibs}"
- lappend options MCOMPL "${configure.objc}"
- lappend options MFLAGC "${configure.objcflags}"
- lappend options SYSDIR "\\\$SYSDIR"
+ lappend options XINCL "${configure.cppflags}"
+ lappend options MOTIF_INCL ""
+ lappend options ATHENA_INCL ""
+ lappend options TK_INCL ""
+ lappend options RV_INCL ""
+ lappend options FCOMPL "${configure.fc}"
+ lappend options FFLAGC "${configure.fcflags}"
+ lappend options FFLAGD ""
+ lappend options CCOMPL "${configure.cc}"
+ lappend options CFLAGC "${configure.cppflags} ${configure.cflags}"
+ lappend options CFLAGD ""
+ lappend options PGBIND_FLAGS "bsd"
+ lappend options LIBS "${configure.ldflags} ${x11Libs} ${aqtLibs}"
+ lappend options MOTIF_LIBS ""
+ lappend options ATHENA_LIBS ""
+ lappend options TK_LIBS ""
+ lappend options RANLIB "/usr/bin/ranlib"
+ lappend options SHARED_LIB "libpgplot${version}.dylib"
+ lappend options SHARED_LD "${configure.fc} ${shlib_opts} ${configure.ldflags} ${x11Libs} -install_name ${prefix}/lib/libpgplot${compat_version}.dylib"
+ lappend options SHARED_LIB_LIBS "${configure.ldflags} -lpng ${aqtLibs}"
+ lappend options MCOMPL "${configure.objc}"
+ lappend options MFLAGC "${configure.objcflags}"
+ lappend options SYSDIR "\\\$SYSDIR"
# The following variables are not part of the unpatched pgplot.
# They have been added to facilitate building a shared C library.
- lappend options CSHARED_LIB "libcpgplot${version}.dylib"
- lappend options CSHARED_LD "${configure.fc} ${shlib_opts} ${configure.ldflags} ${x11Libs} -install_name ${prefix}/lib/libcpgplot${compat_version}.dylib"
+ lappend options CSHARED_LIB "libcpgplot${version}.dylib"
+ lappend options CSHARED_LD "${configure.fc} ${shlib_opts} ${configure.ldflags} ${x11Libs} -install_name ${prefix}/lib/libcpgplot${compat_version}.dylib"
file mkdir ${worksrcpath}/sys_darwin
foreach {var val} ${options} {
@@ -138,7 +145,7 @@
configure.args ${worksrcpath} ${os.platform}
# When linking against fortran code, PG_PPU gets number of underscores correct.
-configure.cppflags-append -DPG_PPU
+configure.cppflags-append -DPG_PPU
# Build the C PGPLOT wrapper library, HTML documentation, and TeX files.
build.target-append cpg pgplot.html pgplot-routines.tex
@@ -189,22 +196,22 @@
ln -s libcpgplot${version}.dylib ${destroot}${prefix}/lib/libcpgplot[join [lrange [split ${version} .] 0 0] .].dylib
ln -s libcpgplot${version}.dylib ${destroot}${prefix}/lib/libcpgplot[join [lrange [split ${version} .] 0 1] .].dylib
- ln -s libpgplot${version}.dylib ${destroot}${prefix}/lib/libpgplot.dylib
- ln -s libpgplot${version}.dylib ${destroot}${prefix}/lib/libpgplot[join [lrange [split ${version} .] 0 0] .].dylib
- ln -s libpgplot${version}.dylib ${destroot}${prefix}/lib/libpgplot[join [lrange [split ${version} .] 0 1] .].dylib
+ ln -s libpgplot${version}.dylib ${destroot}${prefix}/lib/libpgplot.dylib
+ ln -s libpgplot${version}.dylib ${destroot}${prefix}/lib/libpgplot[join [lrange [split ${version} .] 0 0] .].dylib
+ ln -s libpgplot${version}.dylib ${destroot}${prefix}/lib/libpgplot[join [lrange [split ${version} .] 0 1] .].dylib
}
use_parallel_build no
-universal_variant no
+universal_variant no
variant no_x11 {
- depends_lib-delete port:xorg-libX11
- depends_build-delete port:pkgconfig
+ depends_lib-delete port:xorg-libX11
+ depends_build-delete port:pkgconfig
}
variant aquaterm description {install driver for aquaterm} {
- depends_lib-append port:aquaterm
+ depends_lib-append port:aquaterm
post-extract {
copy ${prefix}/share/aquaterm/adapters/pgplot/aqdriv.m ${worksrcpath}/drivers
@@ -213,22 +220,22 @@
variant gcc42 description {build with gfortran from gcc42} conflicts gcc43 gcc44 gcc45 gcc46 g95 {
depends_lib-append port:gcc42
- configure.fc ${prefix}/bin/gfortran-mp-4.2
+ configure.fc ${prefix}/bin/gfortran-mp-4.2
}
variant gcc43 description {build with gfortran from gcc43} conflicts gcc42 gcc44 gcc45 gcc46 g95 {
depends_lib-append port:gcc43
- configure.fc ${prefix}/bin/gfortran-mp-4.3
+ configure.fc ${prefix}/bin/gfortran-mp-4.3
}
variant gcc44 description {build with gfortran from gcc44} conflicts gcc42 gcc43 gcc45 gcc46 g95 {
depends_lib-append port:gcc44
- configure.fc ${prefix}/bin/gfortran-mp-4.4
+ configure.fc ${prefix}/bin/gfortran-mp-4.4
}
variant gcc45 description {build with gfortran from gcc45} conflicts gcc42 gcc43 gcc44 gcc46 g95 {
depends_lib-append port:gcc45
- configure.fc ${prefix}/bin/gfortran-mp-4.5
+ configure.fc ${prefix}/bin/gfortran-mp-4.5
}
variant gcc46 description {build with gfortran from gcc46} conflicts gcc42 gcc43 gcc44 gcc45 g95 {
@@ -238,11 +245,11 @@
variant g95 description {build with g95} conflicts gcc42 gcc43 gcc44 gcc45 gcc46 {
depends_lib-append port:g95
- configure.fc ${prefix}/bin/g95
+ configure.fc ${prefix}/bin/g95
}
if {![variant_isset g95] && ![variant_isset gcc42] && ![variant_isset gcc43] && ![variant_isset gcc45] && ![variant_isset gcc46]} {
- default_variants +gcc44
+ default_variants +gcc44
}
variant docs description {Create and install docs} {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120314/342a4e2f/attachment.html>
More information about the macports-changes
mailing list