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 153799 2016-10-11 17:02:56Z jwa@macports.org $ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | PortGroup python 1.0 |
---|
6 | |
---|
7 | name py-gdbm |
---|
8 | version 2.4.6 |
---|
9 | categories-append databases |
---|
10 | license PSF |
---|
11 | platforms darwin |
---|
12 | maintainers nomaintainer |
---|
13 | description Python bindings to the GNU dbm library |
---|
14 | long_description ${description} |
---|
15 | |
---|
16 | homepage http://docs.python.org/library/gdbm.html |
---|
17 | |
---|
18 | python.versions 24 25 26 27 31 32 33 34 35 36 |
---|
19 | |
---|
20 | set setup_py "setup.py" |
---|
21 | set extract_files "Modules/gdbmmodule.c" |
---|
22 | |
---|
23 | subport py24-gdbm { |
---|
24 | maintainers fourdigits.nl:roel openmaintainer |
---|
25 | use_bzip2 yes |
---|
26 | checksums sha1 cb1972a554a458f6a26d3e047b359251865d7c96 \ |
---|
27 | rmd160 0687989193dec2ac108142759281be7ddcf7f31e |
---|
28 | livecheck.regex Python (2.4.\[0-9\]+) |
---|
29 | } |
---|
30 | subport py25-gdbm { |
---|
31 | maintainers nomaintainer |
---|
32 | version 2.5.6 |
---|
33 | use_bzip2 yes |
---|
34 | checksums sha1 29f6dd41bf09c5e04311b367cbb7604fa016e699 \ |
---|
35 | rmd160 92f0a955971f187a7d50c6422168202ec551bf22 |
---|
36 | livecheck.regex Python (2.5.\[0-9\]+) |
---|
37 | } |
---|
38 | subport py26-gdbm { |
---|
39 | maintainers mcalhoun openmaintainer |
---|
40 | version 2.6.9 |
---|
41 | use_xz yes |
---|
42 | checksums md5 933a811f11e3db3d73ae492f6c3a7a76 \ |
---|
43 | rmd160 42edf7c9f2f64b77ab173de30ea453257c2c06b3 \ |
---|
44 | sha256 cae7bb995006ea5b703d9d28446f694894c441fe4bfb95d561c0ac908cd06e41 |
---|
45 | livecheck.regex Python (2.6.\[0-9\]+) |
---|
46 | } |
---|
47 | subport py27-gdbm { |
---|
48 | maintainers jwa openmaintainer |
---|
49 | version 2.7.12 |
---|
50 | use_xz yes |
---|
51 | checksums rmd160 c330f6ac08ed67f307de0e726a288bab16c832d5 \ |
---|
52 | sha256 d7837121dd5652a05fef807c361909d255d173280c4e1a4ded94d73d80a1f978 |
---|
53 | livecheck.regex Python (2.7.\[0-9\]+) |
---|
54 | } |
---|
55 | subport py31-gdbm { |
---|
56 | maintainers nomaintainer |
---|
57 | version 3.1.5 |
---|
58 | use_xz yes |
---|
59 | checksums md5 20dd2b7f801dc97db948dd168df4dd52 \ |
---|
60 | rmd160 021362658310f9ea5f6825bf0919f160304f4833 \ |
---|
61 | sha256 035c4370354d901924ce0fd8df65c5452839f590ec1b9c17fae2ada3e5f3b4d7 |
---|
62 | set setup_py "setup-py3k.py" |
---|
63 | set extract_files "Modules/_gdbmmodule.c" |
---|
64 | livecheck.regex Python (3.1.\[0-9\]+) |
---|
65 | } |
---|
66 | subport py32-gdbm { |
---|
67 | maintainers nomaintainer |
---|
68 | version 3.2.6 |
---|
69 | use_xz yes |
---|
70 | checksums md5 e0ba4360dfcb4aec735e666cc0ae7b0e \ |
---|
71 | rmd160 f3f5877cd3ac03151f161353e808a38204f1270d \ |
---|
72 | sha256 1d12b501819fd26afafbf8459be1aa279b56f032b4c15412de0a713ce0de7bdc |
---|
73 | set setup_py "setup-py3k.py" |
---|
74 | set extract_files "Modules/_gdbmmodule.c" |
---|
75 | livecheck.regex Python (3.2.\[0-9\]+) |
---|
76 | } |
---|
77 | subport py33-gdbm { |
---|
78 | maintainers jwa openmaintainer |
---|
79 | version 3.3.6 |
---|
80 | epoch 20141012 |
---|
81 | use_xz yes |
---|
82 | checksums rmd160 e45909eedf3648408ef8b34775ab24654181d9bd \ |
---|
83 | sha256 5226e4bf7a530c3ff2bcde0c94e0e09e59a8bcde0114fe0268bc925bdabb5d3f |
---|
84 | set setup_py "setup-py3k.py" |
---|
85 | set extract_files "Modules/_gdbmmodule.c" |
---|
86 | livecheck.regex Python (3.3.\[0-9\]+) |
---|
87 | } |
---|
88 | subport py34-gdbm { |
---|
89 | maintainers jwa openmaintainer |
---|
90 | version 3.4.5 |
---|
91 | epoch 20160627 |
---|
92 | use_xz yes |
---|
93 | checksums rmd160 47604be01f37671a16c17e27316af327a1048fd6 \ |
---|
94 | sha256 ee64b1c8a47461009abf25252332d29a4e587cb4f0c1c96aa793a3732e9d898a |
---|
95 | set setup_py "setup-py3k.py" |
---|
96 | set extract_files "Modules/_gdbmmodule.c" |
---|
97 | livecheck.regex Python (3.4.\[0-9\]+) |
---|
98 | } |
---|
99 | subport py35-gdbm { |
---|
100 | maintainers jwa openmaintainer |
---|
101 | version 3.5.2 |
---|
102 | epoch 20160627 |
---|
103 | use_xz yes |
---|
104 | checksums rmd160 709be7df28045c4fc8ed40cadd299478439f9522 \ |
---|
105 | sha256 0010f56100b9b74259ebcd5d4b295a32324b58b517403a10d1a2aa7cb22bca40 |
---|
106 | set setup_py "setup-py3k.py" |
---|
107 | set extract_files "Modules/_gdbmmodule.c Modules/clinic/_gdbmmodule.c.h" |
---|
108 | livecheck.regex Python (3.5.\[0-9\]+) |
---|
109 | } |
---|
110 | subport py36-gdbm { |
---|
111 | maintainers jwa openmaintainer |
---|
112 | version 3.6.0b2 |
---|
113 | epoch 20161011 |
---|
114 | use_xz yes |
---|
115 | checksums rmd160 403160e4ae0f86653f00b7b6e07f50312046d431 \ |
---|
116 | sha256 3afd4544b99933275c513f7c3d3a23e183de8e209709ed8785bbd42e2c4869ea |
---|
117 | set setup_py "setup-py3k.py" |
---|
118 | set extract_files "Modules/_gdbmmodule.c Modules/clinic/_gdbmmodule.c.h" |
---|
119 | livecheck.regex Python (3.6.\[0-9\]+) |
---|
120 | } |
---|
121 | |
---|
122 | distname Python-${version} |
---|
123 | master_sites http://www.python.org/ftp/python/${version}/ |
---|
124 | |
---|
125 | if {${name} ne ${subport}} { |
---|
126 | depends_lib-append port:gdbm |
---|
127 | |
---|
128 | dist_subdir python${python.version} |
---|
129 | |
---|
130 | worksrcdir ${worksrcdir}/Modules |
---|
131 | |
---|
132 | foreach f $extract_files { |
---|
133 | lappend extract_files_full "${distname}/$f" |
---|
134 | } |
---|
135 | extract.post_args "| tar -xf - ${extract_files_full}" |
---|
136 | post-extract { |
---|
137 | file copy ${filespath}/${setup_py} ${worksrcpath}/setup.py |
---|
138 | } |
---|
139 | |
---|
140 | patch { |
---|
141 | reinplace "s|__VERSION__|${version}|g" ${worksrcpath}/setup.py |
---|
142 | reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/setup.py |
---|
143 | } |
---|
144 | } |
---|
145 | |
---|
146 | livecheck.type regex |
---|
147 | livecheck.url https://www.python.org/downloads/ |
---|