mirror of
https://github.com/void-linux/void-packages.git
synced 2025-04-16 14:17:02 +02:00
highlight: add perl plugin.
This commit is contained in:
parent
25c85477fa
commit
dc91fb811d
2 changed files with 22 additions and 3 deletions
1
srcpkgs/highlight-perl
Symbolic link
1
srcpkgs/highlight-perl
Symbolic link
|
@ -0,0 +1 @@
|
|||
highlight
|
|
@ -1,11 +1,11 @@
|
|||
# Template file for 'highlight'
|
||||
pkgname=highlight
|
||||
version=3.54
|
||||
revision=1
|
||||
revision=2
|
||||
build_style=gnu-makefile
|
||||
make_cmd="make QMAKE=qmake"
|
||||
hostmakedepends="pkg-config qt-qmake"
|
||||
makedepends="boost-devel lua-devel"
|
||||
hostmakedepends="pkg-config qt-qmake swig perl"
|
||||
makedepends="boost-devel lua-devel perl"
|
||||
short_desc="Fast and flexible source code highlighter (CLI version)"
|
||||
maintainer="Steve Prybylski <sa.prybylx@gmail.com>"
|
||||
license="GPL-3.0-or-later"
|
||||
|
@ -14,7 +14,25 @@ distfiles="http://www.andre-simon.de/zip/${pkgname}-${version}.tar.bz2"
|
|||
checksum=8a50a85e94061b53085c6ad8cf110039217dbdd411ab846f9ff934bec7ecd6d0
|
||||
conf_files="/etc/highlight/filetypes.conf"
|
||||
|
||||
pre_build() {
|
||||
make -C extras/swig perl "CXX=$CXX -fPIC -lperl $LDFLAGS"
|
||||
}
|
||||
|
||||
do_check() {
|
||||
# No check target, fails spetarcularly when asked
|
||||
:
|
||||
}
|
||||
|
||||
post_install() {
|
||||
rm -rf ${DESTDIR}/usr/share/doc/highlight/extras
|
||||
}
|
||||
|
||||
highlight-perl_package() {
|
||||
short_desc+=" - perl module"
|
||||
depends="${sourcepkg}>=${version}_${revision}"
|
||||
pkg_install() {
|
||||
vmkdir usr/lib/perl5/vendor_perl/auto/highlight
|
||||
vinstall extras/swig/highlight.so 755 usr/lib/perl5/vendor_perl/auto/highlight
|
||||
vinstall extras/swig/highlight.pm 644 usr/lib/perl5/vendor_perl
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue