Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 21843 - (show annotations) (download)
Mon Jul 21 09:58:59 2014 UTC (9 years, 9 months ago) by niro
File size: 3125 byte(s)
-release branches/R11-stable
1 # $Id$
2
3 PNAME="redland"
4 PVER="1.0.17"
5 PBUILD="r1"
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.30
16 >= net-misc/curl-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.7"
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
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
124 src_install_redland-storage-virtuoso()
125 {
126 cd ${SRCDIR}
127 minstalldir /usr/$(mlibdir)/redland || die
128 minstallexec src/.libs/librdf_storage_virtuoso.so /usr/$(mlibdir)/redland || die
129 }
130
131 src_install_redland-storage-sqlite()
132 {
133 cd ${SRCDIR}
134 minstalldir /usr/$(mlibdir)/redland || die
135 minstallexec src/.libs/librdf_storage_sqlite.so /usr/$(mlibdir)/redland || die
136 }