diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /x11-misc/xnots/xnots-0.2.1-r2.ebuild |
reinit the tree, so we can have metadata
Diffstat (limited to 'x11-misc/xnots/xnots-0.2.1-r2.ebuild')
-rw-r--r-- | x11-misc/xnots/xnots-0.2.1-r2.ebuild | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/x11-misc/xnots/xnots-0.2.1-r2.ebuild b/x11-misc/xnots/xnots-0.2.1-r2.ebuild new file mode 100644 index 000000000000..15752d347787 --- /dev/null +++ b/x11-misc/xnots/xnots-0.2.1-r2.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit flag-o-matic toolchain-funcs + +DESCRIPTION="A desktop sticky note program for the unix geek" +HOMEPAGE="http://xnots.sourceforge.net https://github.com/thePalindrome/xnots" +SRC_URI="mirror://sourceforge/xnots/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="vim-syntax" + +RDEPEND=" + x11-libs/libX11 + x11-libs/libXext + x11-libs/libXrandr + x11-libs/libXrender + x11-libs/pango[X] +" + +DEPEND=" + ${RDEPEND} + virtual/pkgconfig + x11-proto/randrproto + x11-proto/renderproto + x11-proto/xextproto +" +PATCHES=( + "${FILESDIR}"/${PN}-0.2.1-gcc6.patch +) + +src_prepare() { + default + + sed -i -e 's|LICENCE||g' Makefile || die + + append-cflags -std=gnu89 +} + +src_compile() { + emake CC="$(tc-getCC)" NO_DEBUG=1 +} + +src_install() { + emake \ + DESTDIR="${D}" \ + docdir=/usr/share/doc/${PF} \ + mandir=/usr/share/man \ + prefix=/usr \ + install + + if use vim-syntax; then + insinto /usr/share/vim/vimfiles/syntax + doins etc/xnots.vim + fi +} |