Skip to content

Commit f0c6a73

Browse files
authored
Merge pull request #199 from fufexan/master
meson: don't prepend /
2 parents 9f3fcc3 + 0e7d456 commit f0c6a73

5 files changed

Lines changed: 23 additions & 20 deletions

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
4141
- name: Setup build
4242
run: |
43-
meson setup build --libdir=lib --prefer-static --pkg-config-path=$(find .github -name "pkgconfig")
43+
meson setup build --sysconfdir /etc --prefer-static --pkg-config-path $(find .github -name "pkgconfig")
4444
case "${{ inputs.buildtype }}" in
4545
"release")
4646
meson configure build --optimization=s --strip

.github/workflows/pr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Pull Request
22

33
on:
4-
pull_request:
4+
pull_request_target:
55

66
jobs:
77
build:
@@ -28,7 +28,7 @@ jobs:
2828
runs-on: ubuntu-latest
2929
if: always()
3030
steps:
31-
- uses: thollander/actions-comment-pull-request@v2
31+
- uses: thollander/actions-comment-pull-request@v3
3232
with:
3333
comment_tag: bot_comment
3434
mode: recreate

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Fri Oct 11 2024 - 6.0.6
2+
- Better building system compatibility
13
# Wed Oct 2 2024 - 6.0.5
24
- Fix fmt lib compatibility
35
# Fri Sept 30 2024 - 6.0.4

meson.build

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
project(
22
'linux-enable-ir-emitter',
33
'cpp',
4-
version: '6.0.5',
4+
version: '6.0.6',
55
license: 'MIT',
66
default_options: [
77
'cpp_std=c++20',
@@ -39,25 +39,20 @@ spdlog_dep = dependency('spdlog', include_type: 'system')
3939
############
4040
# Variable #
4141
############
42-
sysconf_dir = '/' / get_option('sysconfdir') / meson.project_name()
42+
config_dir = get_option('sysconfdir') / meson.project_name()
4343
log_dir = get_option('localstatedir') / 'log' / meson.project_name()
44-
cfg_data = configuration_data(
45-
{
46-
'version': meson.project_version(),
47-
'configdir': sysconf_dir,
48-
'log_file': log_dir / meson.project_name() + '.log',
49-
},
50-
)
5144

5245
##############
5346
# Executable #
5447
##############
5548
subdir('src')
5649

57-
#################
58-
# Configuration #
59-
#################
60-
install_emptydir(sysconf_dir)
50+
################
51+
# Config + Log #
52+
################
53+
install_emptydir(config_dir)
54+
55+
install_emptydir(log_dir)
6156

6257
####################
6358
# Shell completion #
@@ -80,20 +75,18 @@ install_data(
8075
if get_option('boot_service') == 'systemd'
8176
install_data(
8277
'boot_service/systemd/linux-enable-ir-emitter.service',
83-
install_dir: '/' / get_option('sysconfdir') / 'systemd/system',
78+
install_dir: get_option('sysconfdir') / 'systemd/system',
8479
)
8580
elif get_option('boot_service') == 'openrc'
8681
install_data(
8782
'boot_service/openrc/linux-enable-ir-emitter',
88-
install_dir: '/' / get_option('sysconfdir') / 'init.d',
83+
install_dir: get_option('sysconfdir') / 'init.d',
8984
)
9085
endif
9186

9287
##########
9388
# Others #
9489
##########
95-
install_emptydir(log_dir)
96-
9790
install_data(
9891
'README.md',
9992
install_dir: get_option('datadir') / 'doc' / meson.project_name(),

src/meson.build

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
cfg_data = configuration_data(
2+
{
3+
'version': meson.project_version(),
4+
'configdir': config_dir,
5+
'log_file': log_dir / meson.project_name() + '.log',
6+
},
7+
)
8+
19
configure_file(
210
input: 'linux-enable-ir-emitter.cpp.in',
311
output: 'linux-enable-ir-emitter.cpp',

0 commit comments

Comments
 (0)