mirror of
https://github.com/irssi/irssi.git
synced 2025-02-02 15:08:01 -05:00
add a PACKAGE_VERSION override for meson
This commit is contained in:
parent
03217a487e
commit
cb11fd9cf7
10
meson.build
10
meson.build
@ -53,6 +53,8 @@ require_glib_internal = get_option('install-glib') == 'force'
|
||||
|
||||
want_static_dependency = get_option('static-dependency') == 'yes'
|
||||
|
||||
package_version = get_option('PACKAGE_VERSION') != '' ? get_option('PACKAGE_VERSION') : meson.project_version()
|
||||
|
||||
chat_modules = ['irc']
|
||||
|
||||
run_command('mkdir', meson.current_build_dir() / incdir)
|
||||
@ -540,7 +542,7 @@ foreach h : headers
|
||||
endforeach
|
||||
|
||||
conf.set('HAVE_LIBUTF8PROC', have_libutf8proc)
|
||||
conf.set_quoted('PACKAGE_VERSION', meson.project_version())
|
||||
conf.set_quoted('PACKAGE_VERSION', package_version)
|
||||
conf.set_quoted('PACKAGE_TARNAME', meson.project_name())
|
||||
|
||||
configure_file(output : 'irssi-config.h',
|
||||
@ -581,7 +583,11 @@ pc_requires = []
|
||||
if not glib_internal
|
||||
pc_requires += glib_dep
|
||||
endif
|
||||
pc.generate(filebase : 'irssi-1', name : 'Irssi', description : 'Irssi chat client', requires : pc_requires)
|
||||
pc.generate(filebase : 'irssi-1',
|
||||
name : 'Irssi',
|
||||
description : 'Irssi chat client',
|
||||
version : package_version,
|
||||
requires : pc_requires)
|
||||
|
||||
###########
|
||||
# irssi.1 #
|
||||
|
@ -15,3 +15,4 @@ option('static-dependency', type : 'combo', description : 'Request static depen
|
||||
option('install-glib', type : 'combo', description : 'Download and install GLib for you', choices : ['no', 'yes', 'force'])
|
||||
option('docdir', type : 'string', description : 'Documentation directory')
|
||||
option('fhs-prefix', type : 'string', description : 'System prefix for Termux')
|
||||
option('PACKAGE_VERSION', type : 'string', description : 'Override PACKAGE_VERSION in tarballs')
|
||||
|
Loading…
Reference in New Issue
Block a user