meta-openembedded/meta-oe/recipes-support/source-highlight/source-highlight_git.bb
Alexander Kanavin fc78d37ff0
meta-openembedded/all: adapt to UNPACKDIR changes
Please see
https://git.yoctoproject.org/poky/commit/?id=4dd321f8b83afecd962393101b2a6861275b5265
for what changes are needed, and sed commands that can be used to make them en masse.

I've verified that bitbake -c patch world works with these, but did not run a world
build; the majority of recipes shouldn't need further fixups, but if there are
some that still fall out, they can be fixed in followups.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-06-25 06:44:52 -07:00

36 lines
1.2 KiB
BlitzBasic

SUMMARY = "Syntax highlight utility"
DESCRIPTION = "Source-highlight converts source code to formatted text with syntax highlighting."
HOMEPAGE = "https://www.gnu.org/software/src-highlite/"
LICENSE = "GPL-3.0-only"
SECTION = "libs"
LIC_FILES_CHKSUM = "file://COPYING;md5=ff95bfe019feaf92f524b73dd79e76eb"
SRCREV = "894cacd0799ca60afa359a63782729dec76cbb79"
PV = "3.1.9+git"
SRC_URI = "git://git.savannah.gnu.org/git/src-highlite.git;protocol=https;branch=master"
inherit autotools pkgconfig
DEPENDS:append = " bison-native boost"
DEPENDS:append:class-target = " ${BPN}-native"
EXTRA_OECONF = "--with-boost-regex=boost_regex"
BBCLASSEXTEND = "native nativesdk"
PACKAGES += "${PN}-tools ${PN}-data"
RDEPENDS:${PN} = "boost-regex ${PN}-data"
RDEPENDS:${PN}-tools = "${PN} ${PN}-data bash"
FILES:${PN} = "${libdir}/*${SOLIBS}"
FILES:${PN}-data = "${datadir}/source-highlight"
FILES:${PN}-tools = "${bindir} ${sysconfdir}/bash_completion.d"
# source-highlight is using its own binary from the build tree to make documentation
# let's substitute the native binary instead
do_configure:prepend:class-target () {
sed -i -e 's,^SRCHILITEEXE = $(top_builddir).*,SRCHILITEEXE = source-highlight,' ${S}/doc/Makefile.am
}