diff options
author | Etienne Cordonnier <ecordonnier@snap.com> | 2025-04-11 10:20:26 +0200 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2025-04-11 08:20:13 -0700 |
commit | 285142657be99788beaa5ec710d38639ac3098f1 (patch) | |
tree | aa3b39feabf2e611257b0ce58c6e256ee491b431 | |
parent | 9b5c9136df421ef87b41b9db492eeef6d8a77afe (diff) | |
download | meta-openembedded-285142657be99788beaa5ec710d38639ac3098f1.tar.gz |
source-highlight: add recipe
source-highlight version 3.1.8 was removed from openembedded-core in
https://web.git.yoctoproject.org/poky/commit/?id=6560db9ddfd39a2715ede96430228306b00f53dd
in June 2019 because the was no user left, however there is now a gdb
PACKAGECONFIG option which uses it. Since the last release was in 2019, let's
use the latest git version rather than the latest formal release.
Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r-- | meta-oe/recipes-support/source-highlight/source-highlight_git.bb | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/source-highlight/source-highlight_git.bb b/meta-oe/recipes-support/source-highlight/source-highlight_git.bb new file mode 100644 index 0000000000..ad5085250c --- /dev/null +++ b/meta-oe/recipes-support/source-highlight/source-highlight_git.bb | |||
@@ -0,0 +1,36 @@ | |||
1 | SUMMARY = "Syntax highlight utility" | ||
2 | DESCRIPTION = "Source-highlight converts source code to formatted text with syntax highlighting." | ||
3 | HOMEPAGE = "https://www.gnu.org/software/src-highlite/" | ||
4 | LICENSE = "GPL-3.0-only" | ||
5 | SECTION = "libs" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;;md5=ff95bfe019feaf92f524b73dd79e76eb" | ||
7 | |||
8 | SRCREV = "894cacd0799ca60afa359a63782729dec76cbb79" | ||
9 | PV = "3.1.9+git" | ||
10 | SRC_URI = "git://git.savannah.gnu.org/git/src-highlite.git;protocol=https;branch=master" | ||
11 | S = "${WORKDIR}/git" | ||
12 | |||
13 | inherit autotools pkgconfig | ||
14 | |||
15 | DEPENDS:append = " bison-native boost" | ||
16 | |||
17 | DEPENDS:append:class-target = " ${PN}-native" | ||
18 | |||
19 | EXTRA_OECONF="--with-boost-regex=boost_regex" | ||
20 | |||
21 | BBCLASSEXTEND = "native nativesdk" | ||
22 | |||
23 | PACKAGES += "${PN}-tools ${PN}-data" | ||
24 | |||
25 | RDEPENDS:${PN} = "boost-regex ${PN}-data" | ||
26 | RDEPENDS:${PN}-tools = "${PN} ${PN}-data bash" | ||
27 | |||
28 | FILES:${PN} = "${libdir}/*${SOLIBS}" | ||
29 | FILES:${PN}-data = "${datadir}/source-highlight" | ||
30 | FILES:${PN}-tools = "${bindir} ${sysconfdir}/bash_completion.d" | ||
31 | |||
32 | # source-highlight is using its own binary from the build tree to make documentation | ||
33 | # let's substitute the native binary instead | ||
34 | do_configure:prepend:class-target () { | ||
35 | sed -i -e 's,^SRCHILITEEXE = $(top_builddir).*,SRCHILITEEXE = source-highlight,' ${S}/doc/Makefile.am | ||
36 | } | ||