diff options
author | Andre McCurdy <armccurdy@gmail.com> | 2016-01-22 17:26:02 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-01-25 12:44:12 +0000 |
commit | 9b2835e690fb3f3ed2b9febe65eb5a84906faba0 (patch) | |
tree | 8a0977edaf8728194d30589eebd2c7946e1000f7 /meta/recipes-support/sqlite | |
parent | 89ed462a179dd2b1e707d3636f69ba86f37774fc (diff) | |
download | poky-9b2835e690fb3f3ed2b9febe65eb5a84906faba0.tar.gz |
sqlite: formatting improvements, move more stuff into sqlite3.inc
Reformatting only, no functional changes.
(From OE-Core rev: 34ddae767620186646fb5d36ab240fd6c98a5cbb)
Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support/sqlite')
-rw-r--r-- | meta/recipes-support/sqlite/sqlite3.inc | 23 | ||||
-rw-r--r-- | meta/recipes-support/sqlite/sqlite3_3.10.0.bb | 20 |
2 files changed, 23 insertions, 20 deletions
diff --git a/meta/recipes-support/sqlite/sqlite3.inc b/meta/recipes-support/sqlite/sqlite3.inc index ac19be92e8..540d2b6314 100644 --- a/meta/recipes-support/sqlite/sqlite3.inc +++ b/meta/recipes-support/sqlite/sqlite3.inc | |||
@@ -1,7 +1,21 @@ | |||
1 | SUMMARY = "Embeddable SQL database engine" | 1 | SUMMARY = "Embeddable SQL database engine" |
2 | HOMEPAGE = "http://www.sqlite.org" | 2 | HOMEPAGE = "http://www.sqlite.org" |
3 | SECTION = "libs" | 3 | SECTION = "libs" |
4 | LICENSE = "PD" | 4 | |
5 | PE = "3" | ||
6 | |||
7 | def sqlite_download_version(d): | ||
8 | pvsplit = d.getVar('PV', True).split('.') | ||
9 | if len(pvsplit) < 4: | ||
10 | pvsplit.append('0') | ||
11 | return pvsplit[0] + ''.join([part.rjust(2,'0') for part in pvsplit[1:]]) | ||
12 | |||
13 | SQLITE_PV = "${@sqlite_download_version(d)}" | ||
14 | |||
15 | S = "${WORKDIR}/sqlite-autoconf-${SQLITE_PV}" | ||
16 | |||
17 | UPSTREAM_CHECK_URI = "http://www.sqlite.org/" | ||
18 | UPSTREAM_CHECK_REGEX = "releaselog/(?P<pver>(\d+[\.\-_]*)+)\.html" | ||
5 | 19 | ||
6 | inherit autotools pkgconfig | 20 | inherit autotools pkgconfig |
7 | 21 | ||
@@ -16,14 +30,19 @@ EXTRA_OECONF = "--enable-shared --enable-threadsafe --disable-editline" | |||
16 | BUILD_CFLAGS += "-DUSE_PREAD" | 30 | BUILD_CFLAGS += "-DUSE_PREAD" |
17 | TARGET_CFLAGS += "-DUSE_PREAD" | 31 | TARGET_CFLAGS += "-DUSE_PREAD" |
18 | 32 | ||
33 | # Provide column meta-data API | ||
34 | BUILD_CFLAGS += "-DSQLITE_ENABLE_COLUMN_METADATA" | ||
35 | TARGET_CFLAGS += "-DSQLITE_ENABLE_COLUMN_METADATA" | ||
36 | |||
19 | PACKAGES = "lib${BPN} lib${BPN}-dev lib${BPN}-doc ${PN}-dbg lib${BPN}-staticdev ${PN}" | 37 | PACKAGES = "lib${BPN} lib${BPN}-dev lib${BPN}-doc ${PN}-dbg lib${BPN}-staticdev ${PN}" |
20 | 38 | ||
21 | FILES_${PN} = "${bindir}/*" | 39 | FILES_${PN} = "${bindir}/*" |
22 | FILES_lib${BPN} = "${libdir}/*.so.*" | 40 | FILES_lib${BPN} = "${libdir}/*.so.*" |
23 | FILES_lib${BPN}-dev = "${libdir}/*.la ${libdir}/*.so \ | 41 | FILES_lib${BPN}-dev = "${libdir}/*.la ${libdir}/*.so \ |
24 | ${libdir}/pkgconfig ${includedir}" | 42 | ${libdir}/pkgconfig ${includedir}" |
25 | FILES_lib${BPN}-doc = "${docdir} ${mandir} ${infodir}" | 43 | FILES_lib${BPN}-doc = "${docdir} ${mandir} ${infodir}" |
26 | FILES_lib${BPN}-staticdev = "${libdir}/lib*.a" | 44 | FILES_lib${BPN}-staticdev = "${libdir}/lib*.a" |
45 | |||
27 | AUTO_LIBNAME_PKGS = "${MLPREFIX}lib${BPN}" | 46 | AUTO_LIBNAME_PKGS = "${MLPREFIX}lib${BPN}" |
28 | 47 | ||
29 | BBCLASSEXTEND = "native nativesdk" | 48 | BBCLASSEXTEND = "native nativesdk" |
diff --git a/meta/recipes-support/sqlite/sqlite3_3.10.0.bb b/meta/recipes-support/sqlite/sqlite3_3.10.0.bb index 092f78266f..c18369222e 100644 --- a/meta/recipes-support/sqlite/sqlite3_3.10.0.bb +++ b/meta/recipes-support/sqlite/sqlite3_3.10.0.bb | |||
@@ -1,27 +1,11 @@ | |||
1 | require sqlite3.inc | 1 | require sqlite3.inc |
2 | 2 | ||
3 | LICENSE = "PD" | ||
3 | LIC_FILES_CHKSUM = "file://sqlite3.h;endline=11;md5=65f0a57ca6928710b418c094b3570bb0" | 4 | LIC_FILES_CHKSUM = "file://sqlite3.h;endline=11;md5=65f0a57ca6928710b418c094b3570bb0" |
4 | 5 | ||
5 | def sqlite_download_version(d): | ||
6 | pvsplit = d.getVar('PV', True).split('.') | ||
7 | if len(pvsplit) < 4: | ||
8 | pvsplit.append('0') | ||
9 | return pvsplit[0] + ''.join([part.rjust(2,'0') for part in pvsplit[1:]]) | ||
10 | |||
11 | PE = "3" | ||
12 | SQLITE_PV = "${@sqlite_download_version(d)}" | ||
13 | SRC_URI = "http://www.sqlite.org/2016/sqlite-autoconf-${SQLITE_PV}.tar.gz \ | 6 | SRC_URI = "http://www.sqlite.org/2016/sqlite-autoconf-${SQLITE_PV}.tar.gz \ |
14 | file://parallel.patch \ | 7 | file://parallel.patch \ |
15 | " | 8 | " |
16 | 9 | ||
17 | SRC_URI[md5sum] = "274364e6ca5c1104d42912f11e61ed26" | 10 | SRC_URI[md5sum] = "274364e6ca5c1104d42912f11e61ed26" |
18 | SRC_URI[sha256sum] = "43cc292d70711fa7580250c8a1cd7c64813a4a0a479dbd502cce5f10b5d91042" | 11 | SRC_URI[sha256sum] = "43cc292d70711fa7580250c8a1cd7c64813a4a0a479dbd502cce5f10b5d91042" |
19 | |||
20 | UPSTREAM_CHECK_URI = "http://www.sqlite.org/" | ||
21 | UPSTREAM_CHECK_REGEX = "releaselog/(?P<pver>(\d+[\.\-_]*)+)\.html" | ||
22 | |||
23 | S = "${WORKDIR}/sqlite-autoconf-${SQLITE_PV}" | ||
24 | |||
25 | # Provide column meta-data API | ||
26 | BUILD_CFLAGS += "-DSQLITE_ENABLE_COLUMN_METADATA" | ||
27 | TARGET_CFLAGS += "-DSQLITE_ENABLE_COLUMN_METADATA" | ||