diff --git a/trunk/dports/devel/cpphs/Portfile b/trunk/dports/devel/cpphs/Portfile
a
|
b
|
|
3 | 3 | PortSystem 1.0 |
4 | 4 | |
5 | 5 | name cpphs |
| 6 | replaced_by hs-cpphs |
| 7 | PortGroup obsolete 1.0 |
| 8 | |
6 | 9 | version 1.3 |
7 | | categories devel |
8 | | maintainers gwright |
9 | | platforms darwin |
10 | | description cpp implemented in Haskell. |
11 | | long_description \ |
12 | | cpphs is a liberalised re-implementation of cpp, \ |
13 | | the C pre-processor, in Haskell. |
| 10 | revision 1 |
14 | 11 | |
15 | | homepage http://www.haskell.org/cpphs/ |
16 | | master_sites http://www.cs.york.ac.uk/fp/${name}/ |
17 | | |
18 | | checksums md5 fe1f36d1cbc2ca4a8b769d1f9c2f63bc |
19 | | |
20 | | depends_lib port:ghc |
21 | | |
22 | | pre-configure { |
23 | | system "ghc -o ${worksrcpath}/Setup ${worksrcpath}/Setup.hs -package Cabal" |
24 | | } |
25 | | |
26 | | configure { |
27 | | system "cd ${worksrcpath} && ${worksrcpath}/Setup configure --ghc --prefix=${prefix}" |
28 | | } |
29 | | |
30 | | build { |
31 | | system "cd ${worksrcpath} && ${worksrcpath}/Setup build -v" |
32 | | } |
33 | | |
34 | | destroot { |
35 | | |
36 | | system "cd ${worksrcpath} && ${worksrcpath}/Setup copy --copy-prefix=${destroot}${prefix}" |
37 | | system "cd ${worksrcpath} && ${worksrcpath}/Setup register --gen-script" |
38 | | system "cd ${worksrcpath} && ${worksrcpath}/Setup unregister --gen-script" |
39 | | |
40 | | file mkdir ${destroot}${prefix}/libexec/${name} |
41 | | file copy ${worksrcpath}/register.sh \ |
42 | | ${destroot}${prefix}/libexec/${name} |
43 | | file copy ${worksrcpath}/unregister.sh \ |
44 | | ${destroot}${prefix}/libexec/${name} |
45 | | } |
46 | | |
47 | | post-activate { system "${prefix}/libexec/${name}/register.sh" } |
48 | | |
49 | | pre-deactivate { system "${prefix}/libexec/${name}/unregister.sh" } |
| 12 | categories devel haskell |
diff --git a/trunk/dports/devel/cpphs b/trunk/dports/devel/hs-cpphs/Portfile
copy from trunk/dports/devel/cpphs
copy to trunk/dports/devel/hs-cpphs/Portfile
a
|
b
|
|
1 | 1 | # $Id$ |
2 | 2 | |
3 | 3 | PortSystem 1.0 |
| 4 | PortGroup haskell 1.0 |
4 | 5 | |
5 | | name cpphs |
6 | | version 1.3 |
7 | | categories devel |
| 6 | haskell.setup cpphs 1.16 |
8 | 7 | maintainers gwright |
9 | 8 | platforms darwin |
| 9 | license GPL-2 LGPL-2.1 |
10 | 10 | description cpp implemented in Haskell. |
11 | 11 | long_description \ |
12 | 12 | cpphs is a liberalised re-implementation of cpp, \ |
13 | 13 | the C pre-processor, in Haskell. |
14 | 14 | |
15 | 15 | homepage http://www.haskell.org/cpphs/ |
16 | | master_sites http://www.cs.york.ac.uk/fp/${name}/ |
17 | 16 | |
18 | | checksums md5 fe1f36d1cbc2ca4a8b769d1f9c2f63bc |
19 | | |
20 | | depends_lib port:ghc |
21 | | |
22 | | pre-configure { |
23 | | system "ghc -o ${worksrcpath}/Setup ${worksrcpath}/Setup.hs -package Cabal" |
24 | | } |
25 | | |
26 | | configure { |
27 | | system "cd ${worksrcpath} && ${worksrcpath}/Setup configure --ghc --prefix=${prefix}" |
28 | | } |
29 | | |
30 | | build { |
31 | | system "cd ${worksrcpath} && ${worksrcpath}/Setup build -v" |
32 | | } |
33 | | |
34 | | destroot { |
35 | | |
36 | | system "cd ${worksrcpath} && ${worksrcpath}/Setup copy --copy-prefix=${destroot}${prefix}" |
37 | | system "cd ${worksrcpath} && ${worksrcpath}/Setup register --gen-script" |
38 | | system "cd ${worksrcpath} && ${worksrcpath}/Setup unregister --gen-script" |
39 | | |
40 | | file mkdir ${destroot}${prefix}/libexec/${name} |
41 | | file copy ${worksrcpath}/register.sh \ |
42 | | ${destroot}${prefix}/libexec/${name} |
43 | | file copy ${worksrcpath}/unregister.sh \ |
44 | | ${destroot}${prefix}/libexec/${name} |
45 | | } |
46 | | |
47 | | post-activate { system "${prefix}/libexec/${name}/register.sh" } |
48 | | |
49 | | pre-deactivate { system "${prefix}/libexec/${name}/unregister.sh" } |
| 17 | checksums rmd160 4b8d10b9f52e8bcbc2fa35c398fd853cce37af71 \ |
| 18 | sha256 b7562ee6dd504f210a363c6bb7ea542e67f0a6ad75aca66080e66801870e69bb |