Skip to content

Commit

Permalink
media-libs/compface: Port to EAPI 7
Browse files Browse the repository at this point in the history
Package-Manager: Portage-2.3.81, Repoman-2.3.20
Signed-off-by: David Seifert <[email protected]>
  • Loading branch information
SoapGentoo committed Dec 12, 2019
1 parent 9683414 commit 39b43a8
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 27 deletions.
15 changes: 5 additions & 10 deletions media-libs/compface/compface-1.5.2.ebuild
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI="4"

inherit eutils
EAPI=7

DESCRIPTION="Utilities and library to convert to/from X-Face format"
HOMEPAGE="http://www.xemacs.org/Download/optLibs.html"
Expand All @@ -12,15 +10,12 @@ SRC_URI="http://ftp.xemacs.org/pub/xemacs/aux/${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="alpha amd64 arm arm64 hppa ia64 ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos"
IUSE=""

src_prepare() {
epatch "${FILESDIR}"/${P}-destdir.diff
sed -i "/strip/d" Makefile.in
}
RDEPEND="dev-lang/perl"

PATCHES=( "${FILESDIR}"/${P}-fix-build-system.patch )

src_install() {
emake DESTDIR="${D}" install
dodoc ChangeLog README
default
newbin xbm2xface{.pl,}
}
17 changes: 0 additions & 17 deletions media-libs/compface/files/compface-1.5.2-destdir.diff

This file was deleted.

28 changes: 28 additions & 0 deletions media-libs/compface/files/compface-1.5.2-fix-build-system.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
--- a/Makefile.in
+++ b/Makefile.in
@@ -1,10 +1,10 @@
prefix = @prefix@
exec_prefix = @exec_prefix@
srcdir = @srcdir@
-BINDIR = @bindir@
-LIBDIR = @libdir@
-MANDIR = @mandir@
-INCLUDEDIR = @includedir@
+BINDIR = $(DESTDIR)/@bindir@
+LIBDIR = $(DESTDIR)/@libdir@
+MANDIR = $(DESTDIR)/@mandir@
+INCLUDEDIR = $(DESTDIR)/@includedir@

@SET_MAKE@

@@ -77,10 +77,8 @@
$(INSTALL_PROGRAM) -d $(BINDIR) $(LIBDIR) $(MAN1DIR) $(MAN3DIR) $(INCLUDEDIR)
$(INSTALL_PROGRAM) $(srcdir)/$(NAMEEXE) $(EXECUTABLE)
-chmod 0755 $(EXECUTABLE)
- -strip $(EXECUTABLE)
$(INSTALL_PROGRAM) $(srcdir)/$(UNNAMEEXE) $(UNEXECUTABLE)
-chmod 0755 $(UNEXECUTABLE)
- -strip $(UNEXECUTABLE)
$(INSTALL_DATA) $(srcdir)/$(NAME).1 $(MAN1DIR)/$(NAME).1
cd $(MAN1DIR) && $(RM) ./$(UNNAME).1 && $(LN_S) $(NAME).1 $(UNNAME).1
$(INSTALL_DATA) $(srcdir)/$(NAME).3 $(MAN3DIR)/$(NAME).3

0 comments on commit 39b43a8

Please sign in to comment.