source: trunk/dports/sysutils/darwinports/Portfile @ 15531

Last change on this file since 15531 was 15531, checked in by jmpp, 15 years ago

Submitted by: jmpp@ jberry@ yeled@

Even more update to this package:

-) The pkg for 10.4 was showing misleading OS info due to incorrect reinplaces on the Welcome.html file (jmpp@);
-) The ReadMe.rtf file was not clear enough about Port Authority being a separate download (jberry@);
-) All mention of Port Authority was crossed out from the pkg for 10.3, as the app is not certified
to run on that platform (jmpp@ & yeled@ -- thanks for those sed & regex lessons Charlie!)

  • Property svn:eol-style set to native
File size: 6.9 KB
Line 
1# $Id: Portfile,v 1.16 2005/12/16 06:45:52 jmpp Exp $
2
3PortSystem              1.0
4
5name                    DarwinPorts
6version                 1.2
7categories              sysutils
8platforms               darwin freebsd
9maintainers             portmgr@opendarwin.org
10
11description             The DarwinPorts Infrastructure
12long_description        DarwinPorts provides the infrastructure that allows easy installation and management \
13                        of freely available software on Mac OS X 10.3 (Darwin 7) or newer systems.
14
15homepage                http://www.darwinports.org
16master_sites            ${homepage}/downloads
17use_bzip2               yes
18checksums               rmd160 65da35e874045868698bac71c5d7bd8fe64e3572
19
20#depends_run            port:PortAuthority
21
22destroot.keepdirs ${destroot}${prefix}/include\
23        ${destroot}${prefix}/lib ${destroot}${prefix}/libexec\
24        ${destroot}${prefix}/sbin\
25        ${destroot}${prefix}/share/info\
26        ${destroot}${prefix}/share/man/cat1 ${destroot}${prefix}/share/man/cat2 ${destroot}${prefix}/share/man/cat3\
27        ${destroot}${prefix}/share/man/cat4 ${destroot}${prefix}/share/man/cat5 ${destroot}${prefix}/share/man/cat6\
28        ${destroot}${prefix}/share/man/cat7 ${destroot}${prefix}/share/man/cat8 ${destroot}${prefix}/share/man/cat9\
29        ${destroot}${prefix}/share/man/catl ${destroot}${prefix}/share/man/catn \
30        ${destroot}${prefix}/share/man/man1 ${destroot}${prefix}/share/man/man2 ${destroot}${prefix}/share/man/man3\
31        ${destroot}${prefix}/share/man/man4 ${destroot}${prefix}/share/man/man5 ${destroot}${prefix}/share/man/man6\
32        ${destroot}${prefix}/share/man/man7 ${destroot}${prefix}/share/man/man8 ${destroot}${prefix}/share/man/man9\
33        ${destroot}${prefix}/share/man/manl ${destroot}${prefix}/share/man/mann \
34        ${destroot}${prefix}/share/nls/C ${destroot}${prefix}/share/nls/skel\
35        ${destroot}${prefix}/share/nls/af_ZA.ISO8859-1\
36        ${destroot}${prefix}/share/nls/af_ZA.ISO8859-15\
37        ${destroot}${prefix}/share/nls/bg_BG.CP1251\
38        ${destroot}${prefix}/share/nls/cs_CZ.ISO8859-2\
39        ${destroot}${prefix}/share/nls/da_DK.ISO8859-1\
40        ${destroot}${prefix}/share/nls/da_DK.ISO8859-15\
41        ${destroot}${prefix}/share/nls/de_AT.ISO8859-1\
42        ${destroot}${prefix}/share/nls/de_AT.ISO8859-15\
43        ${destroot}${prefix}/share/nls/de_CH.ISO8859-1\
44        ${destroot}${prefix}/share/nls/de_CH.ISO8859-15\
45        ${destroot}${prefix}/share/nls/de_DE.ISO8859-1\
46        ${destroot}${prefix}/share/nls/de_DE.ISO8859-15\
47        ${destroot}${prefix}/share/nls/el_GR.ISO8859-7\
48        ${destroot}${prefix}/share/nls/en_AU.ISO8859-1\
49        ${destroot}${prefix}/share/nls/en_AU.ISO8859-15\
50        ${destroot}${prefix}/share/nls/en_AU.US-ASCII\
51        ${destroot}${prefix}/share/nls/en_CA.ISO8859-1\
52        ${destroot}${prefix}/share/nls/en_CA.ISO8859-15\
53        ${destroot}${prefix}/share/nls/en_CA.US-ASCII\
54        ${destroot}${prefix}/share/nls/en_GB.ISO8859-1\
55        ${destroot}${prefix}/share/nls/en_GB.ISO8859-15\
56        ${destroot}${prefix}/share/nls/en_GB.US-ASCII\
57        ${destroot}${prefix}/share/nls/en_NZ.ISO8859-1\
58        ${destroot}${prefix}/share/nls/en_NZ.ISO8859-15\
59        ${destroot}${prefix}/share/nls/en_NZ.US-ASCII\
60        ${destroot}${prefix}/share/nls/en_US.ISO8859-1\
61        ${destroot}${prefix}/share/nls/en_US.ISO8859-15\
62        ${destroot}${prefix}/share/nls/es_ES.ISO8859-1\
63        ${destroot}${prefix}/share/nls/es_ES.ISO8859-15\
64        ${destroot}${prefix}/share/nls/et_EE.ISO8859-15\
65        ${destroot}${prefix}/share/nls/fi_FI.ISO8859-1\
66        ${destroot}${prefix}/share/nls/fi_FI.ISO8859-15\
67        ${destroot}${prefix}/share/nls/fr_BE.ISO8859-1\
68        ${destroot}${prefix}/share/nls/fr_BE.ISO8859-15\
69        ${destroot}${prefix}/share/nls/fr_CA.ISO8859-1\
70        ${destroot}${prefix}/share/nls/fr_CA.ISO8859-15\
71        ${destroot}${prefix}/share/nls/fr_CH.ISO8859-1\
72        ${destroot}${prefix}/share/nls/fr_CH.ISO8859-15\
73        ${destroot}${prefix}/share/nls/fr_FR.ISO8859-1\
74        ${destroot}${prefix}/share/nls/fr_FR.ISO8859-15\
75        ${destroot}${prefix}/share/nls/hi_IN.ISCII-DEV\
76        ${destroot}${prefix}/share/nls/hr_HR.ISO8859-2\
77        ${destroot}${prefix}/share/nls/hu_HU.ISO8859-2\
78        ${destroot}${prefix}/share/nls/is_IS.ISO8859-1\
79        ${destroot}${prefix}/share/nls/is_IS.ISO8859-15\
80        ${destroot}${prefix}/share/nls/it_CH.ISO8859-1\
81        ${destroot}${prefix}/share/nls/it_CH.ISO8859-15\
82        ${destroot}${prefix}/share/nls/it_IT.ISO8859-1\
83        ${destroot}${prefix}/share/nls/it_IT.ISO8859-15\
84        ${destroot}${prefix}/share/nls/ja_JP.SJIS\
85        ${destroot}${prefix}/share/nls/ja_JP.eucJP\
86        ${destroot}${prefix}/share/nls/ko_KR.eucKR\
87        ${destroot}${prefix}/share/nls/la_LN.ISO8859-1\
88        ${destroot}${prefix}/share/nls/la_LN.ISO8859-15\
89        ${destroot}${prefix}/share/nls/la_LN.ISO8859-2\
90        ${destroot}${prefix}/share/nls/la_LN.ISO8859-4\
91        ${destroot}${prefix}/share/nls/la_LN.US-ASCII\
92        ${destroot}${prefix}/share/nls/lt_LT.ISO8859-4\
93        ${destroot}${prefix}/share/nls/nl_BE.ISO8859-1\
94        ${destroot}${prefix}/share/nls/nl_BE.ISO8859-15\
95        ${destroot}${prefix}/share/nls/nl_NL.ISO8859-1\
96        ${destroot}${prefix}/share/nls/nl_NL.ISO8859-15\
97        ${destroot}${prefix}/share/nls/no_NO.ISO8859-1\
98        ${destroot}${prefix}/share/nls/no_NO.ISO8859-15\
99        ${destroot}${prefix}/share/nls/pl_PL.ISO8859-2\
100        ${destroot}${prefix}/share/nls/pt_BR.ISO8859-1\
101        ${destroot}${prefix}/share/nls/pt_PT.ISO8859-1\
102        ${destroot}${prefix}/share/nls/pt_PT.ISO8859-15\
103        ${destroot}${prefix}/share/nls/ro_RO.ISO8859-2\
104        ${destroot}${prefix}/share/nls/ru_RU.CP866\
105        ${destroot}${prefix}/share/nls/ru_RU.ISO8859-5\
106        ${destroot}${prefix}/share/nls/ru_RU.KOI8-R\
107        ${destroot}${prefix}/share/nls/sk_SK.ISO8859-2\
108        ${destroot}${prefix}/share/nls/sl_SI.ISO8859-2\
109        ${destroot}${prefix}/share/nls/sv_SE.ISO8859-1\
110        ${destroot}${prefix}/share/nls/sv_SE.ISO8859-15\
111        ${destroot}${prefix}/share/nls/tr_TR.ISO8859-9\
112        ${destroot}${prefix}/share/nls/uk_UA.ISO8859-5\
113        ${destroot}${prefix}/share/nls/uk_UA.KOI8-U\
114        ${destroot}${prefix}/share/nls/zh_CN.eucCN\
115        ${destroot}${prefix}/share/nls/zh_TW.Big5\
116        ${destroot}${prefix}/var/db/dports/distfiles ${destroot}${prefix}/var/db/dports/receipts
117
118
119# This is a proposed solution that would allow us to enhance the pkg without needing a
120# post-pkg hook. There's a patch to integrate this functionality into base/, credit to drernie@
121#package.resources ${filespath}/ReadMe.rtf ${filespath}/License.html ${filespath}/postflight
122
123# But for the moment we use this workaround:
124post-pkg {
125        set resources ${workpath}/${name}-${version}.pkg/Contents/Resources/
126        file copy -force -- ${filespath}/ReadMe.rtf ${resources}
127        file copy -force -- ${filespath}/License.html ${resources}
128        file copy -force -- ${filespath}/postflight ${resources}
129}
130
131platform darwin 7 {
132         post-pkg {
133                  set resources ${workpath}/${name}-${version}.pkg/Contents/Resources/
134                  reinplace "s|__XVERS__|10.3|" ${resources}/ReadMe.rtf
135                  reinplace "s|__DVERS__|7|" ${resources}/ReadMe.rtf
136                  reinplace "/^The \"Port Authority\"/,/\\\\/d" ${resources}/ReadMe.rtf
137                  reinplace "/^\* DISCLAIMER/,/\\\\/d" ${resources}/ReadMe.rtf
138                  reinplace "s|or newer ||" ${resources}/Welcome.html
139         }
140}
141
142platform darwin 8 {
143         post-pkg {
144                  set resources ${workpath}/${name}-${version}.pkg/Contents/Resources/
145                  reinplace "s|__XVERS__|10.4|" ${resources}/ReadMe.rtf
146                  reinplace "s|__DVERS__|8|" ${resources}/ReadMe.rtf
147                  reinplace "s|3|4|" ${resources}/Welcome.html
148                  reinplace "s|7|8|" ${resources}/Welcome.html
149                  reinplace "s|or newer ||" ${resources}/Welcome.html
150         }
151}
Note: See TracBrowser for help on using the repository browser.