source: trunk/dports/devel/gnat-charles/Portfile

Last change on this file was 61460, checked in by ryandesign@…, 8 years ago

Remove erroneous Subversion properties from Portfiles

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.1 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*-
2# $Id: Portfile 61460 2009-12-11 22:16:58Z ryandesign@macports.org $
3# vim: set fileencoding=utf-8 tabstop=8 shiftwidth=4 softtabstop=4 noexpandtab filetype=tcl :
4
5PortSystem          1.0
6
7name                gnat-charles
8version             20050913
9#revision           1
10platforms           darwin
11categories          devel
12maintainers         macports.org:krischik
13description         Charles is a container and algorithms library for Ada.
14long_description                                                                    \
15    Charles is a container and algorithms library based in the                      \
16    C++ STL. It is general, flexible, and efficient, and its design has been guided \
17    by the philosophy that a library should stay out of the programmer's way.  The  \
18    library comprises sequence containers and associative containers. Sequence      \
19    containers include vectors, deques, and lists. The associative containers       \
20    include sets, multisets, maps, and multimaps.
21
22homepage            http://charles.tigris.org
23master_sites        http://charles.tigris.org/files/documents/1507/31292
24distname            charles-${version}
25
26checksums           sha1 8c2e4fb5a948584b744c98c8e3b87d0a7c2e9862
27
28use_zip             yes
29extract.mkdir       yes
30use_parallel_build  yes
31use_configure       no
32
33depends_lib         port:gnat-gcc
34
35build {
36    system "
37        unset ADA_INCLUDE_PATH
38        unset ADA_OBJECTS_PATH
39        pushd ${workpath}/${worksrcdir};
40            gnatmake -fPIC *.adb
41            ar rcs libcharles.a *.o
42            gcc -shared -fpic                                                               \
43                -Wl,-L${prefix}/lib/gnat-gcc/gcc/i386-apple-darwin9.7.0/4.4.0/adalib        \
44                -Wl,-lgnat                                                                  \
45                -o libcharles-${version}.dylib                                              \
46                *.o
47            strip libcharles-${version}.dylib
48        popd;
49    "
50}
51
52destroot {
53    set include_dir ${destroot}${prefix}/include/charles
54    set lib_dir     ${destroot}${prefix}/lib
55
56    xinstall -m 775 -d ${include_dir}
57    xinstall -m 775 -d ${lib_dir}
58
59    eval xinstall -m 644 [glob ${workpath}/${worksrcdir}/*.ad*] ${include_dir}
60    eval xinstall -m 444 [glob ${workpath}/${worksrcdir}/*.ali] ${include_dir}
61    eval xinstall -m 644 [glob ${workpath}/${worksrcdir}/lib*]  ${lib_dir}
62
63    system "
64        pushd ${lib_dir};
65            ln -s libcharles-${version}.so libcharles.so;
66        popd;
67    "
68}
69
Note: See TracBrowser for help on using the repository browser.