1 | # $Id: Portfile 62016 2009-12-27 23:11:33Z ryandesign@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | PortGroup xcode 1.0 |
---|
5 | |
---|
6 | name PlatypusCommandLine |
---|
7 | version 4.0 |
---|
8 | categories aqua devel |
---|
9 | maintainers elelay |
---|
10 | description Program for creating application wrappers around scripts. |
---|
11 | |
---|
12 | long_description Platypus is a program for creating application \ |
---|
13 | wrappers around scripts, i.e. creating Mac OS X \ |
---|
14 | applications that execute a script they are bundled \ |
---|
15 | with. Scripts can thus be run transparently from the \ |
---|
16 | graphical window environment without having to \ |
---|
17 | resort to using the command line interface. It \ |
---|
18 | supports drag and drop on created apps, running as \ |
---|
19 | root using Authentication Manager and more. |
---|
20 | |
---|
21 | homepage http://www.sveinbjorn.org/platypus/ |
---|
22 | master_sites http://www.sveinbjorn.org/files/software/platypus/ |
---|
23 | distname platypus${version}.src |
---|
24 | use_zip yes |
---|
25 | |
---|
26 | checksums md5 b5e0c4774d676ed4ef948ae393afa205 \ |
---|
27 | sha1 9ff33ba214c157e83ad74a0c2a1abf0dfcba9f63 \ |
---|
28 | rmd160 79d23cdc53c763cd3c83e100ea4799e716581bc0 |
---|
29 | |
---|
30 | worksrcdir "Platypus-4.0-Source" |
---|
31 | |
---|
32 | # Dummy configure to enable universal variant. |
---|
33 | use_configure yes |
---|
34 | configure {} |
---|
35 | |
---|
36 | if {! [variant_isset universal]} { |
---|
37 | set arch ${os.arch} |
---|
38 | if {! [string compare ${os.arch} powerpc]} { |
---|
39 | set arch ppc |
---|
40 | } |
---|
41 | |
---|
42 | xcode.build.settings-append ARCHS=${arch} |
---|
43 | xcode.destroot.settings-append ARCHS=${arch} |
---|
44 | } |
---|
45 | |
---|
46 | |
---|
47 | |
---|
48 | # Mostly clagged from xcode portgroup. Not pretty, but the portgroup doesn't |
---|
49 | # support multiple projects. |
---|
50 | build { |
---|
51 | # build platypus_command_line |
---|
52 | set xcode_configuration_arg [xcode::get_configuration_arg ${xcode.configuration}] |
---|
53 | set xcode_build_args [xcode::get_build_args] |
---|
54 | |
---|
55 | xcode.project Script_Exec/ScriptExec.xcodeproj |
---|
56 | set xcode_project_arg [xcode::get_project_arg ${xcode.project}] |
---|
57 | xcode::build_one_target \ |
---|
58 | "$xcode_project_arg -alltargets $xcode_configuration_arg" \ |
---|
59 | "$xcode_build_args ${xcode.build.settings}" |
---|
60 | |
---|
61 | xcode.project command_line_tool/platypus.xcodeproj |
---|
62 | set xcode_project_arg [xcode::get_project_arg ${xcode.project}] |
---|
63 | xcode::build_one_target \ |
---|
64 | "$xcode_project_arg -alltargets $xcode_configuration_arg" \ |
---|
65 | "$xcode_build_args ${xcode.build.settings}" |
---|
66 | |
---|
67 | xcode.project Platypus.xcodeproj |
---|
68 | set xcode_project_arg [xcode::get_project_arg ${xcode.project}] |
---|
69 | xcode::build_one_target \ |
---|
70 | "$xcode_project_arg -alltargets $xcode_configuration_arg" \ |
---|
71 | "$xcode_build_args ${xcode.build.settings}" |
---|
72 | |
---|
73 | } |
---|
74 | |
---|
75 | destroot { |
---|
76 | xcode.destroot.path ${prefix}/bin |
---|
77 | # set some arguments. |
---|
78 | set xcode_configuration_arg [xcode::get_configuration_arg ${xcode.configuration}] |
---|
79 | set xcode_install_path_setting [xcode::get_install_path_setting \ |
---|
80 | ${xcode.destroot.path} ${xcode.destroot.type}] |
---|
81 | set xcode_build_args [xcode::get_build_args] |
---|
82 | |
---|
83 | xcode.project command_line_tool/platypus.xcodeproj |
---|
84 | # let Xcode 2.1+ find resources. |
---|
85 | xcode::fix_resource_dependencies |
---|
86 | set xcode_project_arg [xcode::get_project_arg ${xcode.project}] |
---|
87 | xcode::destroot_one_target \ |
---|
88 | "$xcode_project_arg -alltargets $xcode_configuration_arg" \ |
---|
89 | "$xcode_install_path_setting $xcode_build_args ${xcode.destroot.settings}" |
---|
90 | |
---|
91 | xcode.destroot.path ${applications_dir} |
---|
92 | # set some arguments. |
---|
93 | set xcode_configuration_arg [xcode::get_configuration_arg ${xcode.configuration}] |
---|
94 | set xcode_install_path_setting [xcode::get_install_path_setting \ |
---|
95 | ${xcode.destroot.path} ${xcode.destroot.type}] |
---|
96 | set xcode_build_args [xcode::get_build_args] |
---|
97 | |
---|
98 | xcode.project Platypus.xcodeproj |
---|
99 | # let Xcode 2.1+ find resources. |
---|
100 | xcode::fix_resource_dependencies |
---|
101 | set xcode_project_arg [xcode::get_project_arg ${xcode.project}] |
---|
102 | xcode::destroot_one_target \ |
---|
103 | "$xcode_project_arg -alltargets $xcode_configuration_arg" \ |
---|
104 | "$xcode_install_path_setting $xcode_build_args ${xcode.destroot.settings}" |
---|
105 | } |
---|
106 | |
---|
107 | post-configure { |
---|
108 | reinplace "s|/usr/share/man/man1/|${prefix}/share/man/man1/|g" ${worksrcpath}/command_line_tool/platypus.xcodeproj/project.pbxproj |
---|
109 | |
---|
110 | } |
---|
111 | |
---|
112 | livecheck.type regex |
---|
113 | livecheck.url ${homepage} |
---|
114 | livecheck.regex "${name} (\\d+(?:\\.\\d+)*)" |
---|
115 | |
---|