Ticket #16814: Portfile

File Portfile, 1.8 KB (added by dweber@…, 16 years ago)

Portfile for databases/ruby-pg or some other category for ruby ports

Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2
3# $Id: Portfile 39501 2008-08-22 11:39:46Z jmr@macports.org $
4
5PortSystem      1.0
6PortGroup ruby  1.0
7
8# When the ruby PortGroup is declared within a Portfile, the following
9# variables are provided during port install.
10#
11# ruby.version: The MacPorts Ruby version.
12# ruby.bin:     The Ruby binary location.
13# ruby.lib:     Path to the Ruby vendorlibdir directory (ie, ${prefix}/lib/ruby/vendor_ruby/${ruby.version})
14# ruby.arch:    The name for the Ruby architecture-dependent directory name (ie, i686-darwin8.10.1).
15# ruby.archlib: Path to the Ruby vendor archdir (ie, ${ruby.lib}/${ruby.arch}).
16
17ruby.setup      {postgres ruby-pg} 0.7.9 \
18                setup.rb {README doc sample} \
19                                rubyforge:44546:ruby-pg
20revision        1
21distname        ${ruby.module}-${version}
22
23maintainers     nomaintainer
24description     Ruby API for the PostgreSQL database
25long_description \
26    This is the Ruby library for accessing PostgreSQL \
27    databases from within Ruby.  It works with PostgreSQL 8.3.
28
29categories-append   databases
30
31homepage        http://rubyforge.org/projects/ruby-pg
32master_sites    http://rubyforge.org/frs/download.php/44546/
33
34distfile        ruby-pg-0.7.9.2008.10.05.tar.gz
35checksums   \
36    ruby-pg-0.7.9.2008.10.05.tar.gz \
37        md5 63eb62524165c6db25decc97216ff9fd \
38        sha1 7115ac7aed6a8a1f7514e3ad59b12f6f5f7405f5 \
39        rmd160 cb66ac3adcb8d226a5f14f007613cb944d82e697
40
41depends_lib-append      port:postgresql83
42
43configure.args-append \
44    --with-pgsql-include=${prefix}/include/postgresql83 \
45    --with-pgsql-lib=${prefix}/lib/postgresql83
46
47configure.env-append \
48    POSTGRES_LIB="${prefix}/lib/postgresql83 -L${prefix}/lib -lssl -lcrypto" \
49    POSTGRES_INCLUDE="${prefix}/include/postgresql83 -I${prefix}/include"
50