Magellan Linux

Contents of /branches/R11-stable/extras/redland/redland-1.0.17-r3.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 24413 - (show annotations) (download)
Fri Feb 20 10:20:26 2015 UTC (9 years, 2 months ago) by niro
File size: 3275 byte(s)
-release branches/R11-stable
1 # $Id$
2
3 PNAME="redland"
4 PVER="1.0.17"
5 PBUILD="r3"
6
7 SPLIT_PACKAGES="redland redland-storage-mysql redland-storage-virtuoso redland-storage-sqlite"
8
9 PCAT="dev-libs"
10 HOMEPAGE="http://librdf.org/"
11
12 COMMON_DEPEND=">= dev-libs/libxml2-2.9
13 >= dev-db/db-6.0
14 >= media-libs/raptor-2
15 >= dev-libs/rasqal-0.9.32
16 >= net-libs/libcurl-7
17 >= sys-libs/libltdl-2.4"
18
19 MYSQL_DEPEND=">= virtual/mysql-libs
20 >= dev-libs/openssl-1.0.1
21 >= sys-libs/zlib-1.2.8"
22
23 VIRTUOSO_DEPEND=">= dev-db/virtuoso-6.1
24 >= dev-db/libiodbc-3.52"
25
26 SQLITE_DEPEND=">= dev-db/sqlite-3.8"
27
28 SDEPEND=">= sys-dev/autoconf-4
29 >= sys-dev/automake-3
30 ${COMMON_DEPEND}
31 ${MYSQL_DEPEND}
32 ${VIRTUOSO_DEPEND}
33 ${SQLITE_DEPEND}"
34
35 SRCFILE="${PNAME}-${PVER}.tar.gz"
36 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
37
38 sminclude mtools cleanutils rpath
39 msetfeature "!check"
40
41 SRC_URI=(
42 http://download.librdf.org/source/${SRCFILE}
43 mirror://${PNAME}/${SRCFILE}
44 )
45
46 UP2DATE="updatecmd 'http://download.librdf.org/source/?C=M;O=A' | grep ${PNAME}-[0-9] | lasttarball gz"
47
48 split_info_redland()
49 {
50 DESCRIPTION="Redland is a set of free software libraries that provide support for the Resource Description Framework (RDF)."
51 DEPEND="${COMMON_DEPEND}"
52 }
53
54 split_info_redland-storage-mysql()
55 {
56 DESCRIPTION="MySQL storage support for Redland."
57 DEPEND="== dev-libs/redland-${PVER}
58 ${MYSQL_DEPEND}"
59 }
60
61 split_info_redland-storage-virtuoso()
62 {
63 DESCRIPTION="Virtuoso storage support for Redland."
64 DEPEND="== dev-libs/redland-${PVER}
65 ${VIRTUOSO_DEPEND}"
66 }
67
68 split_info_redland-storage-sqlite()
69 {
70 DESCRIPTION="SQLite storage support for Redland."
71 DEPEND="== dev-libs/redland-${PVER}
72 ${SQLITE_DEPEND}"
73 }
74
75 src_prepare()
76 {
77 munpack ${SRCFILE} || die
78 cd ${SRCDIR}
79
80 # we are using system libs so delete them
81 rm -rf {raptor,rasqal} || die
82 }
83
84 src_compile()
85 {
86 cd ${SRCDIR}
87
88 # disabled virtuoso support, or soprano fails with:
89 # -- Found Redland storage: /usr/lib64/redland/librdf_storage_mysql.so;/usr/lib64/redland/librdf_storage_sqlite.so;/usr/lib64/redland/librdf_storage_virtuoso.so
90 # -- /usr/lib64/redland/librdf_storage_virtuoso.so: undefined symbol: librdf_new_uri
91 mconfigure \
92 --with-raptor=system \
93 --with-rasqal=system \
94 --without-threads \
95 --with-openssl-digests \
96 --with-bdb \
97 --with-bdb-lib=/usr/$(mlibdir) \
98 --with-virtuoso \
99 --with-iodbc \
100 --without-unixodbc \
101 || die
102
103 mmake || die
104 }
105
106 src_install_redland()
107 {
108 cd ${SRCDIR}
109 mmake DESTDIR=${BINDIR} install || die
110
111 # remove duplicates provided by split packages
112 mdelete -r /usr/$(mlibdir)/redland || die
113
114 minstalldocs AUTHORS COPYING* ChangeLog* LICENSE* NEWS README TODO || die
115 }
116
117 src_install_redland-storage-mysql()
118 {
119 cd ${SRCDIR}
120 minstalldir /usr/$(mlibdir)/redland || die
121 minstallexec src/.libs/librdf_storage_mysql.so /usr/$(mlibdir)/redland || die
122
123 # remove insecure rpath
124 mdeleterpath || die
125 }
126
127 src_install_redland-storage-virtuoso()
128 {
129 cd ${SRCDIR}
130 minstalldir /usr/$(mlibdir)/redland || die
131 minstallexec src/.libs/librdf_storage_virtuoso.so /usr/$(mlibdir)/redland || die
132
133 # remove insecure rpath
134 mdeleterpath || die
135 }
136
137 src_install_redland-storage-sqlite()
138 {
139 cd ${SRCDIR}
140 minstalldir /usr/$(mlibdir)/redland || die
141 minstallexec src/.libs/librdf_storage_sqlite.so /usr/$(mlibdir)/redland || die
142
143 # remove insecure rpath
144 mdeleterpath || die
145 }