Skip to content

Commit d1d053b

Browse files
committed
enable ignoring missing dep in pkg config file
1 parent 9af671e commit d1d053b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ bump:
3838
@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
3939
@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
4040
@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
41-
@env PKG_CONFIG_PATH=. pkg-config --modversion getargv++
41+
@env PKG_CONFIG_PATH=. pkg-config --define-variable=dep= --modversion getargv++
4242

4343
tag:
4444
git add -A

getargv++.pc

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
prefix=/usr/local
22
includedir=${prefix}/include/getargv++
33
libdir=${prefix}/lib
4+
dep=getargv
45

56
Name: getargv++
67
Description: Library for getting the arguments of other processes.
78
URL: https://getargv.narzt.cam/
89
Version: 0.10
9-
Requires: getargv
10+
Requires: ${dep}
1011
Cflags: -I${includedir}
1112
Libs: -L${libdir} -lgetargv++
1213
# private is for static linking

0 commit comments

Comments
 (0)