From d1d053bdc7d4ad3f24d8a572f44fff51e40cfe85 Mon Sep 17 00:00:00 2001 From: Camden Narzt Date: Fri, 26 Jul 2024 19:46:39 -0600 Subject: [PATCH] enable ignoring missing dep in pkg config file --- Makefile | 2 +- getargv++.pc | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 55cbbac..37a441a 100644 --- a/Makefile +++ b/Makefile @@ -38,7 +38,7 @@ bump: @ruby -e 'path = STDIN.read.strip;File.write(path, File.read(path).sub(/^(Version: +)([0-9]+)(?:(?:\.)([0-9]+)){1,}/){|s|"#{$$1}#{$$2}.#{$$3.to_i + 1}"})' <<< getargv++.pc @ruby -e 'path = STDIN.read.strip;File.write(path, File.read(path).sub(/^(VERSION=)([0-9]+)(?:(?:\.)([0-9]+)){1,}/){|s|"#{$$1}#{$$2}.#{$$3.to_i + 1}"})' <<< Makefile-variables @ruby -e 'path = STDIN.read.strip;File.write(path, File.read(path).sub(/^(PROJECT_NUMBER += +)([0-9]+)(?:(?:\.)([0-9]+)){1,}/){|s|"#{$$1}#{$$2}.#{$$3.to_i + 1}"})' <<< doxygen.conf - @env PKG_CONFIG_PATH=. pkg-config --modversion getargv++ + @env PKG_CONFIG_PATH=. pkg-config --define-variable=dep= --modversion getargv++ tag: git add -A diff --git a/getargv++.pc b/getargv++.pc index 88dc6b3..80d1826 100644 --- a/getargv++.pc +++ b/getargv++.pc @@ -1,12 +1,13 @@ prefix=/usr/local includedir=${prefix}/include/getargv++ libdir=${prefix}/lib +dep=getargv Name: getargv++ Description: Library for getting the arguments of other processes. URL: https://getargv.narzt.cam/ Version: 0.10 -Requires: getargv +Requires: ${dep} Cflags: -I${includedir} Libs: -L${libdir} -lgetargv++ # private is for static linking