Skip to content

Commit

Permalink
Support meson
Browse files Browse the repository at this point in the history
debian/control
debian/rules
ibus-hiragana.spec.in
  • Loading branch information
ShikiOkasaka committed May 25, 2024
1 parent f5246be commit b499ee9
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 14 deletions.
2 changes: 2 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ Build-Depends:
autopoint,
debhelper (>=11),
dh-python,
gtk-update-icon-cache,
libibus-1.0-dev (>= 1.5.11),
meson (>=0.53),
pkg-config,
python3,
python3-markdown
Expand Down
7 changes: 2 additions & 5 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
#!/usr/bin/make -f
# See debhelper(7) (uncomment to enable)
# output every command that modifies files on the build system.
#export DH_VERBOSE = 1

# use the default libexec path.
override_dh_auto_configure:
dh_auto_configure -- --libexecdir=\$${prefix}/libexec
dh_auto_configure -- --libexecdir=/usr/libexec

%:
dh $@ --with python3
dh $@ --buildsystem=meson --with python3
17 changes: 8 additions & 9 deletions ibus-hiragana.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,17 @@ Release: %autorelease
Summary: Hiragana IME for IBus
License: Apache-2.0 AND GPL-2.0-or-later AND CC-BY-SA-3.0
URL: https://github.com/esrille/%{name}
Source0: https://github.com/esrille/%{name}/releases/download/v${source_version}/%{name}-${source_version}.tar.gz
Source0: https://github.com/esrille/%{name}/releases/download/v${source_version}/%{name}-${source_version}.tar.xz
Requires: ibus >= 1.5.11
Requires: python3
Requires: python3-dbus
Requires: python3-pyxdg
Requires: yelp
BuildRequires: ibus-devel
BuildRequires: gtk-update-icon-cache
BuildRequires: gettext-devel
BuildRequires: ibus-devel
BuildRequires: libtool
BuildRequires: meson >= 0.53.0
BuildRequires: pkgconfig
BuildRequires: python3-devel
BuildArch: noarch
Expand All @@ -26,23 +28,20 @@ Hiragana IME for IBus.
%autosetup

%build
autoreconf -fi -v
%configure
%make_build
%meson
%meson_build

%install
%make_install
%meson_install
%find_lang %{name}

%files -f %{name}.lang
%defattr(-,root,root,-)
%doc README.md
%license LICENSE NOTICE
%license COPYING LICENSE NOTICE
%{_datadir}/%{name}
%{_datadir}/ibus/component/*
%{_datadir}/glib-2.0/schemas/org.freedesktop.ibus.engine.hiragana.gschema.xml
%{_datadir}/icons/hicolor/64x64/apps/ibus-hiragana.png
%{_datadir}/icons/hicolor/64x64/apps/ibus-setup-hiragana.png
%{_datadir}/icons/hicolor/scalable/apps/ibus-hiragana.svg
%{_datadir}/icons/hicolor/scalable/apps/ibus-setup-hiragana.svg
%{_libexecdir}/ibus-engine-hiragana
Expand Down

0 comments on commit b499ee9

Please sign in to comment.