From: Andre McCurdy <armccurdy@gmail.com>
To: openembedded-core@lists.openembedded.org
Subject: [PATCH 4/7] sqlite: formatting improvements, move more stuff into sqlite3.inc
Date: Fri, 22 Jan 2016 17:26:02 -0800 [thread overview]
Message-ID: <1453512366-11405-5-git-send-email-armccurdy@gmail.com> (raw)
In-Reply-To: <1453512366-11405-1-git-send-email-armccurdy@gmail.com>
Reformatting only, no functional changes.
Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
---
meta/recipes-support/sqlite/sqlite3.inc | 23 +++++++++++++++++++++--
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 ac19be9..540d2b6 100644
--- a/meta/recipes-support/sqlite/sqlite3.inc
+++ b/meta/recipes-support/sqlite/sqlite3.inc
@@ -1,7 +1,21 @@
SUMMARY = "Embeddable SQL database engine"
HOMEPAGE = "http://www.sqlite.org"
SECTION = "libs"
-LICENSE = "PD"
+
+PE = "3"
+
+def sqlite_download_version(d):
+ pvsplit = d.getVar('PV', True).split('.')
+ if len(pvsplit) < 4:
+ pvsplit.append('0')
+ return pvsplit[0] + ''.join([part.rjust(2,'0') for part in pvsplit[1:]])
+
+SQLITE_PV = "${@sqlite_download_version(d)}"
+
+S = "${WORKDIR}/sqlite-autoconf-${SQLITE_PV}"
+
+UPSTREAM_CHECK_URI = "http://www.sqlite.org/"
+UPSTREAM_CHECK_REGEX = "releaselog/(?P<pver>(\d+[\.\-_]*)+)\.html"
inherit autotools pkgconfig
@@ -16,14 +30,19 @@ EXTRA_OECONF = "--enable-shared --enable-threadsafe --disable-editline"
BUILD_CFLAGS += "-DUSE_PREAD"
TARGET_CFLAGS += "-DUSE_PREAD"
+# Provide column meta-data API
+BUILD_CFLAGS += "-DSQLITE_ENABLE_COLUMN_METADATA"
+TARGET_CFLAGS += "-DSQLITE_ENABLE_COLUMN_METADATA"
+
PACKAGES = "lib${BPN} lib${BPN}-dev lib${BPN}-doc ${PN}-dbg lib${BPN}-staticdev ${PN}"
FILES_${PN} = "${bindir}/*"
FILES_lib${BPN} = "${libdir}/*.so.*"
FILES_lib${BPN}-dev = "${libdir}/*.la ${libdir}/*.so \
- ${libdir}/pkgconfig ${includedir}"
+ ${libdir}/pkgconfig ${includedir}"
FILES_lib${BPN}-doc = "${docdir} ${mandir} ${infodir}"
FILES_lib${BPN}-staticdev = "${libdir}/lib*.a"
+
AUTO_LIBNAME_PKGS = "${MLPREFIX}lib${BPN}"
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 092f782..c183692 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 @@
require sqlite3.inc
+LICENSE = "PD"
LIC_FILES_CHKSUM = "file://sqlite3.h;endline=11;md5=65f0a57ca6928710b418c094b3570bb0"
-def sqlite_download_version(d):
- pvsplit = d.getVar('PV', True).split('.')
- if len(pvsplit) < 4:
- pvsplit.append('0')
- return pvsplit[0] + ''.join([part.rjust(2,'0') for part in pvsplit[1:]])
-
-PE = "3"
-SQLITE_PV = "${@sqlite_download_version(d)}"
SRC_URI = "http://www.sqlite.org/2016/sqlite-autoconf-${SQLITE_PV}.tar.gz \
file://parallel.patch \
- "
+"
SRC_URI[md5sum] = "274364e6ca5c1104d42912f11e61ed26"
SRC_URI[sha256sum] = "43cc292d70711fa7580250c8a1cd7c64813a4a0a479dbd502cce5f10b5d91042"
-
-UPSTREAM_CHECK_URI = "http://www.sqlite.org/"
-UPSTREAM_CHECK_REGEX = "releaselog/(?P<pver>(\d+[\.\-_]*)+)\.html"
-
-S = "${WORKDIR}/sqlite-autoconf-${SQLITE_PV}"
-
-# Provide column meta-data API
-BUILD_CFLAGS += "-DSQLITE_ENABLE_COLUMN_METADATA"
-TARGET_CFLAGS += "-DSQLITE_ENABLE_COLUMN_METADATA"
--
1.9.1
next prev parent reply other threads:[~2016-01-23 1:26 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-23 1:25 [PATCH 0/7] sqlite3: misc fixes, cleanup + update 3.10.0 -> 3.10.2 Andre McCurdy
2016-01-23 1:25 ` [PATCH 1/7] sqlite3: fix the parallel build fix patch Andre McCurdy
2016-01-23 1:26 ` [PATCH 2/7] sqlite3.inc: fix readline PACKAGECONFIG Andre McCurdy
2016-01-23 1:26 ` [PATCH 3/7] sqlite3.inc: drop obsolete config_BUILD_CC, etc exports Andre McCurdy
2016-01-23 1:26 ` Andre McCurdy [this message]
2016-01-23 1:26 ` [PATCH 5/7] sqlite3.inc: dynamically link the sqlite3 command-line utility Andre McCurdy
2016-01-23 1:26 ` [PATCH 6/7] sqlite3.inc: add PACKAGECONFIG to support building against libedit Andre McCurdy
2016-01-23 1:26 ` [PATCH 7/7] sqlite3: update 3.10.0 -> 3.10.2 Andre McCurdy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1453512366-11405-5-git-send-email-armccurdy@gmail.com \
--to=armccurdy@gmail.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.