Ticket #15192: Portfile

File Portfile, 2.7 KB (added by chuck@…, 17 years ago)

Replacement for the drupal5 portfile with bugfix for the .htaccess file

Line 
1# $Id$
2PortSystem          1.0
3name                drupal5
4version             5.7
5categories          www php
6platforms           darwin
7
8maintainers         chuck@acquia.com
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}.tar.gz
17master_sites        http://ftp.drupal.org/files/projects/ \
18                    http://ftp.osuosl.org/pub/drupal/files/projects/
19checksums           md5     c7d9911ad1001c790bbdfe6fd4cdfc89 \
20                    sha1    9cf916e61d260c885b7542f847d4f7661a14ae00 \
21                    rmd160  d3ec089aa74020ed076fbe71896365dd463279c9
22depends_lib         port:apache2 \
23                    port:php5 \
24                    port: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 php4 description "use php4 instead of php5" {
32  depends_lib-append      port:php4
33  depends_lib-delete      port:php5
34}
35
36variant mysql4 description "use mysql4 instead of mysql5" {
37  depends_lib-append      port:mysql4
38  depends_lib-delete      port:mysql5
39}
40
41variant postgresql description "use postgresql as the drupal database" {
42  depends_lib-append      port:postgresql83
43  depends_lib-delete      port:mysql5
44}
45
46variant postgresql80 description "use postgres80 as the drupal database" {
47  depends_lib-append      port:postgresql80
48  depends_lib-delete      port:mysql5
49}
50
51variant postgresql81 description "use postgressql81 as the drupal database" {
52  depends_lib-append      port:postgresql81
53  depends_lib-delete      port:mysql5
54}
55
56variant postgresql82 description "use postgresql82 as the drupal database" {
57  depends_lib-append      port:postgresql82
58  depends_lib-delete      port:mysql5
59}
60
61variant postgresql83 description "use postgresql83 as the drupal database" {
62  depends_lib-append      port:postgresql83
63  depends_lib-delete      port:mysql5
64}
65
66worksrcdir          drupal-${version}
67use_configure       no
68build               {}
69
70set docroot ${destroot}/${prefix}/www/data
71
72destroot {
73  xinstall -d -m 0755 ${docroot}/drupal5
74  eval file copy [glob ${worksrcpath}/*] ${docroot}/drupal5
75  eval file copy ${worksrcpath}/.htaccess ${docroot}/drupal5
76}