pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/libvterm01 libvterm01: Fix handling of versioned...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7ba23c505dd7
branches:  trunk
changeset: 377487:7ba23c505dd7
user:      nia <nia%pkgsrc.org@localhost>
date:      Thu Apr 21 07:14:12 2022 +0000

description:
libvterm01: Fix handling of versioned .pc file. Should fix neovim.

diffstat:

 devel/libvterm01/Makefile      |   9 ++++++++-
 devel/libvterm01/PLIST         |   4 ++--
 devel/libvterm01/buildlink3.mk |  13 ++++++++++---
 3 files changed, 20 insertions(+), 6 deletions(-)

diffs (63 lines):

diff -r 6741e9ce0381 -r 7ba23c505dd7 devel/libvterm01/Makefile
--- a/devel/libvterm01/Makefile Thu Apr 21 06:56:18 2022 +0000
+++ b/devel/libvterm01/Makefile Thu Apr 21 07:14:12 2022 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.1 2022/04/20 17:14:20 nia Exp $
+# $NetBSD: Makefile,v 1.2 2022/04/21 07:14:12 nia Exp $
 
 DISTNAME=      libvterm-0.1.4
 PKGNAME=       ${DISTNAME:S/libvterm/libvterm01/g}
+PKGREVISION=   1
 CATEGORIES=    devel
 MASTER_SITES=  https://www.leonerd.org.uk/code/libvterm/
 
@@ -23,4 +24,10 @@
 
 PKGCONFIG_OVERRIDE+=   vterm.pc.in
 
+INSTALLATION_DIRS+=    lib/pkgconfig
+
+post-install:
+       ${MV} ${DESTDIR}${PREFIX}/lib/libvterm01/pkgconfig/vterm.pc \
+           ${DESTDIR}${PREFIX}/lib/pkgconfig/vterm01.pc
+
 .include "../../mk/bsd.pkg.mk"
diff -r 6741e9ce0381 -r 7ba23c505dd7 devel/libvterm01/PLIST
--- a/devel/libvterm01/PLIST    Thu Apr 21 06:56:18 2022 +0000
+++ b/devel/libvterm01/PLIST    Thu Apr 21 07:14:12 2022 +0000
@@ -1,5 +1,5 @@
-@comment $NetBSD: PLIST,v 1.1 2022/04/20 17:14:20 nia Exp $
+@comment $NetBSD: PLIST,v 1.2 2022/04/21 07:14:12 nia Exp $
 include/libvterm01/vterm.h
 include/libvterm01/vterm_keycodes.h
 lib/libvterm01/libvterm.la
-lib/libvterm01/pkgconfig/vterm.pc
+lib/pkgconfig/vterm01.pc
diff -r 6741e9ce0381 -r 7ba23c505dd7 devel/libvterm01/buildlink3.mk
--- a/devel/libvterm01/buildlink3.mk    Thu Apr 21 06:56:18 2022 +0000
+++ b/devel/libvterm01/buildlink3.mk    Thu Apr 21 07:14:12 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.1 2022/04/20 17:14:20 nia Exp $
+# $NetBSD: buildlink3.mk,v 1.2 2022/04/21 07:14:12 nia Exp $
 
 BUILDLINK_TREE+=       libvterm01
 
@@ -6,9 +6,16 @@
 LIBVTERM01_BUILDLINK3_MK:=
 
 BUILDLINK_API_DEPENDS.libvterm01+=     libvterm01>=0.0.0
+BUILDLINK_ABI_DEPENDS.libvterm01+=     libvterm01>=0.1.4nb1
 BUILDLINK_PKGSRCDIR.libvterm01?=       ../../devel/libvterm01
-BUILDLINK_INCDIRS.libvterm01?=         include/libvterm01
-BUILDLINK_LIBDIRS.libvterm01?=         lib/libvterm01
+BUILDLINK_INCDIRS.libvterm01+=         include/libvterm01
+BUILDLINK_LIBDIRS.libvterm01+=         lib/libvterm01
+
+BUILDLINK_TARGETS+=    buildlink-vterm-unversioned
+
+buildlink-vterm-unversioned:
+       ${LN} -s ${BUILDLINK_DIR}/lib/pkgconfig/vterm01.pc \
+           ${BUILDLINK_DIR}/lib/pkgconfig/vterm.pc
 
 .endif # LIBVTERM01_BUILDLINK3_MK
 



Home | Main Index | Thread Index | Old Index