switched to meson

This commit is contained in:
Martin Wagner 2021-12-29 14:03:25 +01:00
parent 39922e7c05
commit fac7a3f6e3
24 changed files with 44 additions and 37 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/builddir

View File

@ -54,7 +54,7 @@ Building
--------
Build dependencies:
- DistUtilsExtra
- meson
Dependencies:
- Gtk3
@ -70,8 +70,9 @@ Run:
```bash
git clone https://github.com/SoongNoonien/mpdevil.git
cd mpdevil
sudo python3 setup.py install
sudo glib-compile-schemas /usr/share/glib-2.0/schemas
meson builddir --prefix=/usr/local
sudo ninja -C builddir install
sudo glib-compile-schemas /usr/local/share/glib-2.0/schemas
sudo gtk-update-icon-cache
sudo update-desktop-database
```

View File

Before

Width:  |  Height:  |  Size: 8.6 KiB

After

Width:  |  Height:  |  Size: 8.6 KiB

View File

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 18 KiB

View File

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

View File

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 3.2 KiB

View File

Before

Width:  |  Height:  |  Size: 4.1 KiB

After

Width:  |  Height:  |  Size: 4.1 KiB

View File

Before

Width:  |  Height:  |  Size: 456 B

After

Width:  |  Height:  |  Size: 456 B

View File

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

Before

Width:  |  Height:  |  Size: 8.7 KiB

After

Width:  |  Height:  |  Size: 8.7 KiB

View File

Before

Width:  |  Height:  |  Size: 657 B

After

Width:  |  Height:  |  Size: 657 B

14
data/meson.build Normal file
View File

@ -0,0 +1,14 @@
i18n.merge_file(
input: 'org.mpdevil.mpdevil.desktop.in',
output: 'org.mpdevil.mpdevil.desktop',
type: 'desktop',
po_dir: '../po',
install: true,
install_dir: join_paths(get_option('datadir'), 'applications')
)
install_data('org.mpdevil.mpdevil.appdata.xml', install_dir: join_paths(get_option('datadir'), 'metainfo'))
install_data('org.mpdevil.mpdevil.gschema.xml', install_dir: join_paths(get_option('datadir'), 'glib-2.0/schemas'))
#install_data('help_overlay.ui', install_dir: join_paths(get_option('datadir'), 'share/mpdevil'))
install_subdir('icons', install_dir: get_option('datadir'))

View File

@ -1,11 +1,10 @@
[Desktop Entry]
Name=mpdevil
GenericName=MPD Client
_Comment=A simple music browser for MPD
Comment=A simple music browser for MPD
Exec=mpdevil
Icon=org.mpdevil.mpdevil
Terminal=false
Type=Application
StartupNotify=true
Categories=Audio;AudioVideo;Player;GTK

10
meson.build Normal file
View File

@ -0,0 +1,10 @@
project('mpdevil',
version: '1.4.1',
meson_version: '>= 0.47.0',
)
i18n = import('i18n')
subdir('data')
subdir('src')
subdir('po')

2
po/LINGUAS Normal file
View File

@ -0,0 +1,2 @@
de
nl

View File

@ -1,4 +1,3 @@
[encoding: UTF-8]
bin/mpdevil
src/mpdevil
data/org.mpdevil.mpdevil.desktop.in

1
po/meson.build Normal file
View File

@ -0,0 +1 @@
i18n.gettext('mpdevil', preset: 'glib')

View File

@ -1,30 +0,0 @@
#!/usr/bin/python3
# -*- coding: utf-8 -*-
import DistUtilsExtra.auto
DistUtilsExtra.auto.setup(
name='mpdevil',
version='1.4.1', # sync with bin/mpdevil
author="Martin Wagner",
author_email="martin.wagner.dev@gmail.com",
description=('A simple music browser for MPD'),
url="https://github.com/SoongNoonien/mpdevil",
license='GPL-3.0',
data_files=[
('share/metainfo/', ['data/org.mpdevil.mpdevil.appdata.xml']),
('share/icons/hicolor/16x16/apps/', ['data/icons/16x16/org.mpdevil.mpdevil.png']),
('share/icons/hicolor/24x24/apps/', ['data/icons/24x24/org.mpdevil.mpdevil.png']),
('share/icons/hicolor/32x32/apps/', ['data/icons/32x32/org.mpdevil.mpdevil.png']),
('share/icons/hicolor/48x48/apps/', ['data/icons/48x48/org.mpdevil.mpdevil.png']),
('share/icons/hicolor/64x64/apps/', ['data/icons/64x64/org.mpdevil.mpdevil.png']),
('share/icons/hicolor/128x128/apps/', ['data/icons/128x128/org.mpdevil.mpdevil.png']),
('share/icons/hicolor/256x256/apps/', ['data/icons/256x256/org.mpdevil.mpdevil.png']),
('share/icons/hicolor/scalable/apps/', ['data/icons/scalable/org.mpdevil.mpdevil.svg']),
('share/icons/hicolor/scalable/apps/', ['data/icons/scalable/org.mpdevil.mpdevil-symbolic.svg']),
('share/icons/hicolor/scalable/status/', ['data/icons/scalable/org.mpdevil.mpdevil-single-symbolic.svg']),
('share/icons/hicolor/scalable/status/', ['data/icons/scalable/org.mpdevil.mpdevil-consume-symbolic.svg']),
('share/icons/hicolor/scalable/status/', ['data/icons/scalable/org.mpdevil.mpdevil-consume-symbolic-rtl.svg']),
('share/icons/hicolor/scalable/actions/', ['data/icons/scalable/org.mpdevil.mpdevil-lyrics-symbolic.svg']),
],
)

10
src/meson.build Normal file
View File

@ -0,0 +1,10 @@
#conf = configuration_data()
#configure_file(
# input: 'mpdevil.py',
# output: 'mpdevil',
# configuration: conf,
# install_dir: join_paths(get_option('prefix'), get_option('bindir'))
#)
install_data('mpdevil', install_dir: join_paths(get_option('prefix'), get_option('bindir')))