Ticket #27322: Portfile

File Portfile, 2.3 KB (added by chuck@…, 13 years ago)
Line 
1# $Id$
2PortSystem          1.0
3name                drupal7
4version             7.0
5categories          www php
6platforms           darwin
7
8maintainers         acm.org:c_dantonio
9description         Drupal Open Source enterprise content management platform
10long_description    Drupal is Open Source social publishing software that empowers individuals, teams, and communities  \
11                    to easily publish, manage and organize a wide variety of content on a website. Tens of thousands of \
12                    people and organizations have used Drupal to power scores of different web sites, including community \
13                    web portals, corporate web sites, social networking sites, personal web sites or blogs, and much more.
14                   
15homepage            http://drupal.org
16distfiles           drupal-${version}
17master_sites        http://ftp.drupal.org/files/projects/ \
18                    http://ftp.osuosl.org/pub/drupal/files/projects/
19checksums           md5     e96c0a5e47c5d7706897384069dfb920 \
20                    sha1    124911c7de07b5acd1f801c4a7093440a0e0e3d3 \
21                    rmd160  fd27d5f4b826fb818d6b35754b2ea6b548445369
22depends_lib         port:apache2 \
23                    port:php5 \
24                    path:bin/mysql_config5:mysql5
25
26variant apache1 description "use apache 1.x instead of apache 2.x" {
27  depends_lib-append      port:apache
28  depends_lib-delete      port:apache2
29}
30
31variant sqlite conflicts postgresql postgresql83 description "use sqlite instead of mysql5" {
32  depends_lib-append      port:php5-sqlite
33  depends_lib-delete      path:bin/mysql_config5:mysql5
34}
35
36variant postgresql conflicts sqlite postgresql83 description "use postgresql as the drupal database" {
37  depends_lib-append      port:postgresql84
38  depends_lib-delete      path:bin/mysql_config5:mysql5
39}
40
41variant postgresql83 conflicts sqlite postgresql description "use postgresql83 as the drupal database" {
42  depends_lib-append      port:postgresql83
43  depends_lib-delete      path:bin/mysql_config5:mysql5
44}
45
46worksrcdir          drupal-${version}
47use_configure       no
48build               {}
49
50set docroot ${destroot}${prefix}/www/data
51
52destroot {
53  xinstall -d -m 0755 ${docroot}/drupal7
54  eval file copy [glob ${worksrcpath}/*] ${docroot}/drupal7
55  eval file copy ${worksrcpath}/.htaccess ${docroot}/drupal7
56}
57