source: trunk/dports/lang/pike/Portfile

Last change on this file was 140938, checked in by khindenburg@…, 17 months ago

pike: fix homepage/master_sites/livecheck

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.7 KB
Line 
1# -*- 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
2# $Id: Portfile 140938 2015-10-06 01:39:53Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                pike
7version             7.6.112
8revision            6
9categories          lang
10license             GPL-2
11platforms           darwin
12maintainers         nomaintainer
13
14description         dynamic programming language
15
16long_description    Pike is a dynamic programming language with a syntax \
17                    similar to Java and C. It is simple to learn, does \
18                    not require long compilation passes and has powerful \
19                    built-in data types allowing simple and really fast \
20                    data manipulation.
21
22homepage            http://pike.lysator.liu.se/
23master_sites        ${homepage}pub/pike/all/${version}/
24
25distname            Pike-v${version}
26
27checksums           md5     3ba03096741d6df839d32a940f4a865c \
28                    sha1    211050346d8efc01068e8ea7443f4743116a51be \
29                    rmd160  8983d5bc150beabd1796ff8f05df43e5cf36f467
30
31patchfiles          patch-Request.pike
32
33depends_lib         port:bzip2 \
34                    port:zlib \
35                    port:gmp \
36                    port:nettle
37
38variant image description {Images (JPEG, PNG, GIF, TIFF) support for Pike} {
39    configure.args-append --with-jpeglib --with-gif --with-tifflib
40    depends_lib-append port:jpeg port:tiff port:libpng port:giflib
41}
42
43variant ttf description {TrueType (TTF) support (using FreeType) for Pike} {
44    configure.args-append --with-freetype
45    depends_lib-append port:freetype
46}
47
48variant pcre description {Regular expression support (using PCRE) for Pike} {
49    configure.args-append --with-libpcre
50    depends_lib-append port:pcre
51}
52
53variant gdbm description {GDBM database support for Pike} {
54    configure.args-append --with-gdbm
55    depends_lib-append port:gdbm
56}
57
58variant mysql description {MySQL database support for Pike} {
59    configure.args-append --with-mysql
60    depends_lib-append lib:libmysqlclient:mysql5
61}
62
63variant odbc description {ODBC database support for Pike} {
64    configure.args-append --with-odbc
65    depends_lib-append port:unixODBC
66}
67
68variant postgresql description {Postgres database support for Pike} {
69    configure.args-append --with-postgres
70    depends_lib-append port:postgresql83
71}
72
73variant gtk description {GTK support for Pike} {
74    configure.args-append --with-gtk
75    depends_lib-append port:gtk2
76}
77
78variant opengl description {OpenGL support for Pike} {
79    configure.args-append --with-GL --with-GLUT
80    depends_lib-append port:mesa
81}
82
83#variant perl description {Perl support for Pike} {
84#    configure.args-append --with-perl
85#    depends_lib-append port:perl5.10
86#}
87
88variant sane description {SANE scanner support for Pike} {
89    configure.args-append --with-sane
90    depends_lib-append port:sane-backends
91}
92
93variant sdl description {SDL support for Pike} {
94    configure.args-append --with-SDL
95    depends_lib-append port:libsdl port:libsdl_mixer
96}
97
98variant svg description {SVG vector graphics support for Pike} {
99    configure.args-append --with-svg
100    depends_lib-append port:librsvg
101}
102
103variant doc description {Pike documentation} {
104    build.target-append doc
105}
106
107use_configure       no
108
109configure.args      --without-bundles \
110                    --mandir=${prefix}/share/man \
111                    --with-include-path=${prefix}/include \
112                    --with-lib-path=${prefix}/lib \
113                    --with-zlib
114
115pre-build {
116    # setup the build.args here, because then the configure.args from the
117    # variants will have been assembled:
118    build.args      CONFIGUREARGS="${configure.pre_args} ${configure.args}" \
119                    INSTALLARGS="--traditional"
120}
121
122test.run            yes
123test.target         verify
124
125destroot.target     install_nodoc
126destroot.destdir    buildroot=${destroot} INSTALLARGS="--traditional"
127
128post-destroot {
129    file delete -force ${destroot}${prefix}/bin/pike.syms
130    file delete -force ${destroot}${prefix}/doc/pike
131    # move manpage to correct location:
132    move ${destroot}${prefix}/man/man1/pike.1 \
133        ${destroot}${prefix}/share/man/man1/
134    # move documentation to correct location:
135    xinstall -d ${destroot}${prefix}/share/doc/pike-${version}
136    xinstall -W ${worksrcpath} README COPYING COPYRIGHT ANNOUNCE \
137        COMMITTERS ${destroot}${prefix}/share/doc/pike-${version}
138    if {[variant_isset doc]} {
139        move ${worksrcpath}/refdoc/modref \
140            ${destroot}${prefix}/share/doc/pike-${version}
141        move ${worksrcpath}/refdoc/traditional_manual \
142            ${destroot}${prefix}/share/doc/pike-${version}
143    }
144}
145
146livecheck.url       http://pike.lysator.liu.se/download/pub/pike/latest-stable/
147livecheck.regex     Pike-v(\[0-9.\]+)${extract.suffix}
Note: See TracBrowser for help on using the repository browser.