# 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"
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,}
}
+++ /dev/null
---- compface-1.5.2.orig/Makefile.in
-+++ compface-1.5.2/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@
-
--- /dev/null
+--- 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