summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/source-highlight/source-highlight_git.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-support/source-highlight/source-highlight_git.bb')
-rw-r--r--meta-oe/recipes-support/source-highlight/source-highlight_git.bb35
1 files changed, 35 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..8b0a38095f
--- /dev/null
+++ b/meta-oe/recipes-support/source-highlight/source-highlight_git.bb
@@ -0,0 +1,35 @@
1SUMMARY = "Syntax highlight utility"
2DESCRIPTION = "Source-highlight converts source code to formatted text with syntax highlighting."
3HOMEPAGE = "https://www.gnu.org/software/src-highlite/"
4LICENSE = "GPL-3.0-only"
5SECTION = "libs"
6LIC_FILES_CHKSUM = "file://COPYING;md5=ff95bfe019feaf92f524b73dd79e76eb"
7
8SRCREV = "894cacd0799ca60afa359a63782729dec76cbb79"
9PV = "3.1.9+git"
10SRC_URI = "git://git.savannah.gnu.org/git/src-highlite.git;protocol=https;branch=master"
11
12inherit autotools pkgconfig
13
14DEPENDS:append = " bison-native boost"
15
16DEPENDS:append:class-target = " ${BPN}-native"
17
18EXTRA_OECONF = "--with-boost-regex=boost_regex"
19
20BBCLASSEXTEND = "native nativesdk"
21
22PACKAGES += "${PN}-tools ${PN}-data"
23
24RDEPENDS:${PN} = "boost-regex ${PN}-data"
25RDEPENDS:${PN}-tools = "${PN} ${PN}-data bash"
26
27FILES:${PN} = "${libdir}/*${SOLIBS}"
28FILES:${PN}-data = "${datadir}/source-highlight"
29FILES:${PN}-tools = "${bindir} ${sysconfdir}/bash_completion.d"
30
31# source-highlight is using its own binary from the build tree to make documentation
32# let's substitute the native binary instead
33do_configure:prepend:class-target () {
34 sed -i -e 's,^SRCHILITEEXE = $(top_builddir).*,SRCHILITEEXE = source-highlight,' ${S}/doc/Makefile.am
35}