|
Line 0
Link Here
|
|
|
1 |
# Copyright 1999-2018 Gentoo Authors |
| 2 |
# Distributed under the terms of the GNU General Public License v2 |
| 3 |
|
| 4 |
EAPI=7 |
| 5 |
|
| 6 |
inherit autotools flag-o-matic |
| 7 |
|
| 8 |
MY_P="${PN}-1.14i-ac20050924p1" |
| 9 |
|
| 10 |
DESCRIPTION="Utility for creating and opening lzh archives" |
| 11 |
HOMEPAGE="https://lha.osdn.jp https://github.com/jca02266/lha" |
| 12 |
SRC_URI="mirror://sourceforge.jp/${PN}/22231/${MY_P}.tar.gz" |
| 13 |
|
| 14 |
LICENSE="lha" |
| 15 |
SLOT="0" |
| 16 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~m68k-mint" |
| 17 |
|
| 18 |
S="${WORKDIR}/${MY_P}" |
| 19 |
|
| 20 |
PATCHES=( |
| 21 |
"${FILESDIR}"/${P}-file-list-from-stdin.patch |
| 22 |
"${FILESDIR}"/${P}-fix-getopt_long-declaration.patch |
| 23 |
) |
| 24 |
|
| 25 |
src_prepare() { |
| 26 |
default |
| 27 |
|
| 28 |
sed -e '/^AM_C_PROTOTYPES/d' \ |
| 29 |
-e 's/^AM_CONFIG_HEADER/AC_CONFIG_HEADERS/' \ |
| 30 |
-i configure.ac || die #423125, 467544 |
| 31 |
|
| 32 |
eautoreconf |
| 33 |
} |
| 34 |
|
| 35 |
src_configure() { |
| 36 |
append-cppflags -DPROTOTYPES #423125 |
| 37 |
|
| 38 |
if [[ ${CHOST} == *-interix* ]]; then |
| 39 |
export ac_cv_header_inttypes_h=no |
| 40 |
export ac_cv_func_iconv=no |
| 41 |
fi |
| 42 |
|
| 43 |
econf |
| 44 |
} |
| 45 |
|
| 46 |
src_install() { |
| 47 |
emake \ |
| 48 |
DESTDIR="${D}" \ |
| 49 |
mandir="${EPREFIX}"/usr/share/man/ja \ |
| 50 |
install |
| 51 |
|
| 52 |
dodoc ChangeLog Hacking_of_LHa |
| 53 |
} |