1 |
commit: dd9966ed30334b7790109bb0504682a2102b8025 |
2 |
Author: Mykyta Holubakha <hilobakho <AT> gmail <DOT> com> |
3 |
AuthorDate: Tue Apr 4 12:32:12 2017 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Apr 8 14:59:53 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dd9966ed |
7 |
|
8 |
media-sound/pms: migrate live ebuild to cmake |
9 |
|
10 |
remove extraneous patch |
11 |
Closes: https://github.com/gentoo/gentoo/pull/4356 |
12 |
|
13 |
.../pms/files/pms-9999-fix-automagic-dep.patch | 34 --------------------- |
14 |
media-sound/pms/pms-9999.ebuild | 35 +++++----------------- |
15 |
2 files changed, 7 insertions(+), 62 deletions(-) |
16 |
|
17 |
diff --git a/media-sound/pms/files/pms-9999-fix-automagic-dep.patch b/media-sound/pms/files/pms-9999-fix-automagic-dep.patch |
18 |
deleted file mode 100644 |
19 |
index afb71d130da..00000000000 |
20 |
--- a/media-sound/pms/files/pms-9999-fix-automagic-dep.patch |
21 |
+++ /dev/null |
22 |
@@ -1,34 +0,0 @@ |
23 |
-From 3771a139059cf248cc07cf8a735c0cd95ae3c6af Mon Sep 17 00:00:00 2001 |
24 |
-From: Mykyta Holubakha <hilobakho@×××××.com> |
25 |
-Date: Fri, 9 Sep 2016 00:56:22 +0300 |
26 |
-Subject: [PATCH] Fix automagic pandoc dependency |
27 |
- |
28 |
---- |
29 |
- configure.ac | 11 ++++++++--- |
30 |
- 1 file changed, 8 insertions(+), 3 deletions(-) |
31 |
- |
32 |
-diff --git a/configure.ac b/configure.ac |
33 |
-index 45e6d1a..aea9285 100644 |
34 |
---- a/configure.ac |
35 |
-+++ b/configure.ac |
36 |
-@@ -25,9 +25,14 @@ PKG_CHECK_MODULES([glib], [glib-2.0 >= 2.0],, [AC_MSG_ERROR([glib 2.0 or newer i |
37 |
- PKG_CHECK_MODULES([libmpdclient], [libmpdclient >= 2.5],, [AC_MSG_ERROR([libmpdclient 2.5 or newer is required])]) |
38 |
- |
39 |
- # Check for Pandoc |
40 |
--AC_PATH_PROG(PANDOC,pandoc,no) |
41 |
--if [[ "x$PANDOC" = xno ]]; then |
42 |
-- AC_MSG_WARN([The manual page will not be built.]) |
43 |
-+AC_ARG_WITH([doc], AS_HELP_STRING([--with-doc],[Build the manpage (default: disabled)])) |
44 |
-+if [test "x$with_doc" = "xyes"]; then |
45 |
-+ AC_PATH_PROG(PANDOC,pandoc,no) |
46 |
-+ if [[ "x$PANDOC" = xno ]]; then |
47 |
-+ AC_MSG_WARN([The manual page will not be built.]) |
48 |
-+ fi |
49 |
-+else |
50 |
-+ PANDOC="no" |
51 |
- fi |
52 |
- AM_CONDITIONAL([PANDOC], [test "x$PANDOC" != xno]) |
53 |
- |
54 |
--- |
55 |
-2.10.0 |
56 |
- |
57 |
|
58 |
diff --git a/media-sound/pms/pms-9999.ebuild b/media-sound/pms/pms-9999.ebuild |
59 |
index c4873bce0cc..6d7622c10d9 100644 |
60 |
--- a/media-sound/pms/pms-9999.ebuild |
61 |
+++ b/media-sound/pms/pms-9999.ebuild |
62 |
@@ -3,7 +3,7 @@ |
63 |
|
64 |
EAPI=6 |
65 |
|
66 |
-inherit autotools flag-o-matic git-r3 toolchain-funcs versionator |
67 |
+inherit cmake-utils git-r3 |
68 |
|
69 |
DESCRIPTION="Practical Music Search: an open source ncurses client for mpd, written in C++" |
70 |
HOMEPAGE="https://ambientsound.github.io/pms" |
71 |
@@ -12,45 +12,24 @@ EGIT_REPO_URI="https://github.com/ambientsound/pms.git" |
72 |
LICENSE="GPL-3+" |
73 |
SLOT="0" |
74 |
KEYWORDS="" |
75 |
-IUSE="regex doc" |
76 |
+IUSE="+regex doc" |
77 |
|
78 |
RDEPEND=" |
79 |
sys-libs/ncurses:0=[unicode] |
80 |
dev-libs/glib:2 |
81 |
media-libs/libmpdclient |
82 |
- virtual/libintl |
83 |
" |
84 |
DEPEND=" |
85 |
virtual/pkgconfig |
86 |
- dev-util/intltool |
87 |
- sys-devel/gettext |
88 |
doc? ( app-text/pandoc ) |
89 |
${RDEPEND} |
90 |
" |
91 |
|
92 |
-DOCS=( AUTHORS README TODO ) |
93 |
- |
94 |
-pkg_pretend() { |
95 |
- if [[ ${MERGE_TYPE} != binary ]] && use regex; then |
96 |
- if tc-is-gcc && ! version_is_at_least 4.9 $(gcc-version); then |
97 |
- die "Clang or GCC >= 4.9 is required for proper regex support" |
98 |
- fi |
99 |
- fi |
100 |
-} |
101 |
- |
102 |
-src_prepare() { |
103 |
- eapply "${FILESDIR}/pms-9999-fix-automagic-dep.patch" |
104 |
- eapply_user |
105 |
- |
106 |
- eautoreconf |
107 |
-} |
108 |
- |
109 |
src_configure() { |
110 |
- # Required for ncurses[tinfo] |
111 |
- append-cppflags $($(tc-getPKG_CONFIG) --cflags ncursesw) |
112 |
- append-libs $($(tc-getPKG_CONFIG) --libs ncursesw) |
113 |
+ local mycmakeargs=( |
114 |
+ -DENABLE_DOC=$(usex doc) |
115 |
+ -DENABLE_REGEX=$(usex regex) |
116 |
+ ) |
117 |
|
118 |
- econf \ |
119 |
- $(use_enable regex) \ |
120 |
- $(use_with doc) |
121 |
+ cmake-utils_src_configure |
122 |
} |