New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Changeset 80871


Ignore:
Timestamp:
07/19/11 15:18:04 (4 years ago)
Author:
ryandesign@…
Message:

gvedit: new port, version 2.28.0

Location:
trunk/dports/graphics/gvedit
Files:
3 added
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/dports/graphics/gvedit/Portfile

    r80868 r80871  
    33 
    44PortSystem                      1.0 
    5 PortGroup                       archcheck 1.0 
    6 PortGroup                       xcodeversion 1.0 
     5PortGroup                       qt4 1.0 
    76 
    8 name                            graphviz 
    9 conflicts                       graphviz-devel 
     7name                            gvedit 
     8conflicts                       gvedit-devel 
    109set my_name                     graphviz 
    11 # keep version in sync between graphviz and graphviz-gui 
     10# keep version in sync between graphviz, graphviz-gui and gvedit 
    1211version                         2.28.0 
    1312categories                      graphics 
     
    3736                                rmd160  5a5fae7cb1128d4e863b954bee5f2491ff23ada0 
    3837 
    39 # graphviz needs Xcode 3.1+ to avoid the libGL error when building the smyrna variant 
    40 # graphviz-gui needs Xcode 3.1.2+; see #18811 
    41 minimum_xcodeversions           {9 3.1.2} 
     38use_autoreconf                  yes 
    4239 
    43 depends_lib                     port:xorg-libXaw \ 
    44                                 path:lib/pkgconfig/pango.pc:pango \ 
    45                                 port:jpeg \ 
    46                                 port:libpng \ 
    47                                 port:fontconfig \ 
    48                                 port:freetype \ 
    49                                 port:expat \ 
    50                                 port:gd2 \ 
    51                                 port:gts \ 
    52                                 port:ghostscript \ 
    53                                 port:zlib \ 
    54                                 port:gettext 
     40depends_lib-append              port:graphviz 
    5541 
    56 archcheck.files                 lib/libXaw.dylib \ 
    57                                 lib/libpango-1.0.dylib \ 
    58                                 lib/libjpeg.dylib \ 
    59                                 lib/libpng.dylib \ 
    60                                 lib/libfontconfig.dylib \ 
    61                                 lib/libfreetype.dylib \ 
    62                                 lib/libexpat.dylib \ 
    63                                 lib/libgd.dylib \ 
    64                                 lib/libgts.dylib \ 
    65                                 lib/libgs.dylib \ 
    66                                 lib/libz.dylib \ 
    67                                 lib/libintl.dylib 
     42patchfiles                      patch-cmd-gvedit-Makefile.am.diff 
    6843 
    69 depends_build                   port:pkgconfig 
     44configure.args                  --with-qt 
    7045 
    71 depends_run                     port:urw-fonts 
     46build.dir                       ${worksrcpath}/cmd/gvedit 
    7247 
    73 configure.args                  --with-codegens \ 
    74                                 --with-x \ 
    75                                 --without-devil \ 
    76                                 --without-smyrna \ 
    77                                 --with-digcola \ 
    78                                 --with-ipsepcola \ 
    79                                 --without-rsvg \ 
    80                                 --with-pangocairo \ 
    81                                 --without-glitz \ 
    82                                 --with-freetype2 \ 
    83                                 --with-fontconfig \ 
    84                                 --without-gdk-pixbuf \ 
    85                                 --without-gtk \ 
    86                                 --without-gtkgl \ 
    87                                 --without-gtkglext \ 
    88                                 --with-gts \ 
    89                                 --without-glade \ 
    90                                 --without-gnomeui \ 
    91                                 --without-ming \ 
    92                                 --without-qt \ 
    93                                 --without-quartz \ 
    94                                 --disable-swig \ 
    95                                 --disable-sharp \ 
    96                                 --disable-guile \ 
    97                                 --disable-io \ 
    98                                 --disable-java \ 
    99                                 --disable-lua \ 
    100                                 --disable-ocaml \ 
    101                                 --disable-perl \ 
    102                                 --disable-php \ 
    103                                 --disable-python \ 
    104                                 --disable-python23 \ 
    105                                 --disable-python24 \ 
    106                                 --disable-python25 \ 
    107                                 --disable-r \ 
    108                                 --disable-ruby \ 
    109                                 --disable-tcl 
    110  
    111 # http://www.graphviz.org/mantisbt/view.php?id=2109 
    112 patchfiles libltdl.patch 
    113 use_autoreconf yes 
    114 autoreconf.args -fvi 
    115  
    116 platform macosx { 
    117     if {${os.major} > 8} { 
    118         configure.args-delete   --without-quartz 
    119         configure.args-append   --with-quartz 
    120     } 
    121 } 
    122  
    123 variant guile description {Include Guile language bindings} { 
    124     depends_lib-append          port:guile 
    125     depends_build-append        port:swig-guile 
    126     configure.args-delete       --disable-swig \ 
    127                                 --disable-guile 
    128     configure.args-append       --enable-guile 
    129 } 
    130  
    131 variant lua description {Include Lua language bindings} { 
    132     depends_lib-append          port:lua 
    133     depends_build-append        port:swig-lua 
    134     configure.args-delete       --disable-swig \ 
    135                                 --disable-lua 
    136     configure.args-append       --enable-lua 
    137     post-patch { 
    138         reinplace "s|/usr/lib\$LIBPOSTFIX/lua|${prefix}/lib\$LIBPOSTFIX/lua|g" ${worksrcpath}/configure 
    139     } 
    140 } 
    141  
    142 variant ocaml description {Include Objective Caml language bindings} { 
    143     depends_lib-append          port:ocaml 
    144     depends_build-append        port:swig-ocaml 
    145     configure.args-delete       --disable-swig \ 
    146                                 --disable-ocaml 
    147     configure.args-append       --enable-ocaml 
    148     configure.cppflags-append   -I${prefix}/lib/ocaml 
    149 } 
    150  
    151 variant perl description {Include PERL 5 language bindings} { 
    152     depends_lib-append          path:bin/perl:perl5 
    153     depends_build-append        port:swig-perl 
    154     configure.args-delete       --disable-swig \ 
    155                                 --disable-perl 
    156     configure.args-append       --enable-perl 
    157     configure.perl              ${prefix}/bin/perl 
    158 } 
    159  
    160 variant php description {Include PHP language bindings} { 
    161     depends_lib-append          path:bin/php:php5 
    162     depends_build-append        port:swig-php5 
    163     configure.args-delete       --disable-swig \ 
    164                                 --disable-php 
    165     configure.args-append       --enable-php 
    166     post-patch { 
    167         reinplace "s|/usr/include/php|${prefix}/include/php|g" ${worksrcpath}/configure 
    168         reinplace "s|/usr/lib\${LIBPOSTFIX}/php|${prefix}/lib\${LIBPOSTFIX}/php|g" ${worksrcpath}/configure 
    169         reinplace "s|/usr/share/php|${prefix}/share/php|g" ${worksrcpath}/configure 
    170     } 
    171 } 
    172  
    173 variant python24 description {Include Python 2.4 language bindings} conflicts python25 python26 { 
    174     depends_lib-append          port:python24 
    175     depends_build-append        port:swig-python 
    176     configure.args-delete       --disable-swig \ 
    177                                 --disable-python 
    178     configure.args-append       --enable-python 
    179     configure.python            ${prefix}/bin/python2.4 
    180     # The configure script asks python where to install 
    181     # This doesn't work for 2.4 and 2.5 (see #16334) 
    182     post-patch { 
    183         reinplace "s|PYTHON_INSTALL_DIR=.*|PYTHON_INSTALL_DIR=${prefix}/lib/python2.4|" ${worksrcpath}/configure 
    184     } 
    185 } 
    186  
    187 variant python25 description {Include Python 2.5 language bindings} conflicts python24 python26 { 
    188     depends_lib-append          port:python25 
    189     depends_build-append        port:swig-python 
    190     configure.args-delete       --disable-swig \ 
    191                                 --disable-python 
    192     configure.args-append       --enable-python 
    193     configure.python            ${prefix}/bin/python2.5 
    194     # The configure script asks python where to install 
    195     # This doesn't work for 2.4 and 2.5 (see #16334) 
    196     post-patch { 
    197         reinplace "s|PYTHON_INSTALL_DIR=.*|PYTHON_INSTALL_DIR=${prefix}/lib/python2.5|" ${worksrcpath}/configure 
    198     } 
    199 } 
    200  
    201 variant python26 description {Include Python 2.6 language bindings} conflicts python24 python25 { 
    202     depends_lib-append          port:python26 
    203     depends_build-append        port:swig-python 
    204     configure.args-delete       --disable-swig \ 
    205                                 --disable-python 
    206     configure.args-append       --enable-python 
    207     configure.python            ${prefix}/bin/python2.6 
    208 } 
    209  
    210 variant ruby description {Include Ruby language bindings} { 
    211     depends_lib-append          port:ruby 
    212     depends_build-append        port:swig-ruby 
    213     configure.args-delete       --disable-swig \ 
    214                                 --disable-ruby 
    215     configure.args-append       --enable-ruby 
    216 } 
    217  
    218 variant tcl description {Include Tcl language bindings} { 
    219     depends_lib-append          port:tcl 
    220     depends_build-append        port:swig-tcl 
    221     configure.args-delete       --disable-swig \ 
    222                                 --disable-tcl 
    223     configure.args-append       --enable-tcl 
    224 } 
    225  
    226 variant java description {Include Java language bindings} { 
    227     depends_build-append        port:swig-java 
    228     configure.args-delete       --disable-swig \ 
    229                                 --disable-java 
    230     configure.args-append       --enable-java 
    231 } 
    232  
    233 variant smyrna description {Include the Smyrna large graph viewer} { 
    234     configure.args-delete       --without-smyrna \ 
    235                                 --without-gtk \ 
    236                                 --without-gtkglext \ 
    237                                 --without-glade 
    238     configure.args-append       --with-smyrna \ 
    239                                 --with-gtk \ 
    240                                 --with-gtkglext \ 
    241                                 --with-glade 
    242     depends_lib-append          port:gtk2 \ 
    243                                 port:gtkglext \ 
    244                                 port:libglade2 
    245     archcheck.files-append      bin/gtk-demo \ 
    246                                 lib/libgtkglext-x11-1.0.dylib \ 
    247                                 lib/libglade-2.0.dylib 
    248 } 
    249  
    250 variant r description {Include R language bindings} { 
    251     depends_build-append        port:swig-r 
    252     configure.args-delete       --disable-swig \ 
    253                                 --disable-r 
    254     configure.args-append       --enable-r 
    255 } 
    256  
    257 variant rsvg description {enable the rsvg plugin} { 
    258     depends_lib-append          port:librsvg 
    259     archcheck.files-append      lib/librsvg-2.dylib 
    260     configure.args-delete       --without-rsvg 
    261     configure.args-append       --with-rsvg 
    262 } 
    263  
    264 variant gdk_pixbuf description {enable the gdk_pixbuf plugin} { 
    265     depends_lib-append          port:gtk2 
    266     archcheck.files-append      bin/gtk-demo 
    267     configure.args-delete       --without-gdk-pixbuf 
    268     configure.args-append       --with-gdk-pixbuf 
    269 } 
    270  
    271 variant glitz description {enable the incomplete glitz plugin} { 
    272     depends_lib-append          port:glitz 
    273     archcheck.files-append      lib/libglitz.dylib 
    274     configure.args-delete       --without-glitz 
    275     configure.args-append       --with-glitz 
    276 } 
    277  
    278 variant ming description {enable the incomplete ming plugin} { 
    279     depends_lib-append          port:ming 
    280     archcheck.files-append      lib/libming.dylib 
    281     configure.args-delete       --without-ming 
    282     configure.args-append       --with-ming 
    283 } 
    284  
    285 variant no_pangocairo description {Remove pangocairo support (no antialiased bitmapped output; no PDF output)} { 
    286     depends_lib-delete          path:lib/pkgconfig/pango.pc:pango 
    287     archcheck.files-delete      lib/libpango-1.0.dylib 
    288     configure.args-delete       --with-pangocairo 
    289     configure.args-append       --without-pangocairo 
    290 } 
    291  
    292 variant no_x11 requires no_pangocairo { 
    293     depends_lib-delete          port:xorg-libXaw 
    294     archcheck.files-delete      lib/libXaw.dylib 
    295     configure.args-append       --without-x 
    296 } 
    297  
    298 post-destroot { 
    299     # Make the configuration file that makes the plugins work. 
    300     system "GVBINDIR=${destroot}${prefix}/lib/graphviz DYLD_LIBRARY_PATH=${destroot}${prefix}/lib ${destroot}${prefix}/bin/dot -c" 
    301 } 
    302  
    303 pre-install { 
    304     # Remove old configuration files left behind by old versions of this port. 
    305     foreach file [glob -nocomplain -directory ${prefix}/lib/graphviz config*] { 
    306         delete ${file} 
    307     } 
    308 } 
    309  
    310 # keep livecheck in sync between graphviz and graphviz-gui 
     48# keep livecheck in sync between graphviz, graphviz-gui and gvedit 
    31149livecheck.type                  regex 
    31250livecheck.url                   ${homepage}Download_source.php 
Note: See TracChangeset for help on using the changeset viewer.