forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
media-sound/abcm2ps: version bump to 8.13.8
- Loading branch information
Showing
2 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# Copyright 1999-2017 Gentoo Foundation | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=6 | ||
inherit toolchain-funcs | ||
|
||
DESCRIPTION="A program to convert abc files to Postscript files" | ||
HOMEPAGE="http://moinejf.free.fr/" | ||
SRC_URI="http://moinejf.free.fr/${P}.tar.gz | ||
http://moinejf.free.fr/transpose_abc.pl" | ||
|
||
LICENSE="GPL-2" | ||
SLOT="0" | ||
KEYWORDS="~amd64 ~ppc ~x86" | ||
IUSE="examples pango" | ||
|
||
RDEPEND="pango? ( x11-libs/pango media-libs/freetype:2 )" | ||
DEPEND="${RDEPEND} | ||
virtual/pkgconfig" | ||
|
||
src_configure() { | ||
econf \ | ||
--enable-a4 \ | ||
--enable-deco-is-roll \ | ||
$(use_enable pango) | ||
} | ||
|
||
src_compile() { | ||
emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" | ||
} | ||
|
||
src_install() { | ||
dobin abcm2ps | ||
|
||
insinto /usr/share/${PN} | ||
doins *.fmt | ||
|
||
dodoc Changes README *.txt | ||
|
||
if use examples ; then | ||
docinto examples | ||
dodoc *.{abc,eps} | ||
docompress -x /usr/share/doc/${PF}/examples | ||
fi | ||
|
||
docinto contrib | ||
dodoc "${DISTDIR}"/transpose_abc.pl | ||
} |