app-text/noweb: style changes, || die, DOCS array

Package-Manager: Portage-2.3.91, Repoman-2.3.20
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
Alessandro Barbieri
2020-03-03 05:47:08 +01:00
parent 4aff30d6fd
commit 2eed6d0c8a

View File

@@ -28,6 +28,8 @@ DEPEND="
"
RDEPEND="${DEPEND}"
DOCS=( CHANGES README )
S="${WORKDIR}/${PN}-${MYPV}"
SITEFILE="50${PN}-gentoo.el"
@@ -40,19 +42,19 @@ src_prepare() {
# diff -u d/ c/
# dont run texhash...
sed -i -e "s/texhash/true/" src/Makefile
sed -i -e "s/texhash/true/" src/Makefile || die
# dont strip...
sed -i -e "s/strip/true/" src/Makefile
sed -i -e "s/strip/true/" src/Makefile || die
sed -i -e "s/CC=gcc -ansi -pedantic -O -Wall -Werror//" src/Makefile
sed -i -e "s/CFLAGS=//" src/Makefile
sed -i -e "s/CC=gcc -ansi -pedantic -O -Wall -Werror//" src/c/Makefile
sed -i -e "s/CFLAGS=//" src/c/Makefile
sed -i -e "s/CC=gcc -ansi -pedantic -O -Wall -Werror//" src/Makefile || die
sed -i -e "s/CFLAGS=//" src/Makefile || die
sed -i -e "s/CC=gcc -ansi -pedantic -O -Wall -Werror//" src/c/Makefile || die
sed -i -e "s/CFLAGS=//" src/c/Makefile || die
eapply "${FILESDIR}/${P}-recmake.patch"
sed -i -e "s/CC = cc//" contrib/norman/numarkup/Makefile
sed -i -e "s/CFLAGS = -O//" contrib/norman/numarkup/Makefile
sed -i -e "s/CC = cc//" contrib/norman/numarkup/Makefile || die
sed -i -e "s/CFLAGS = -O//" contrib/norman/numarkup/Makefile || die
eapply "${FILESDIR}/${P}-ldflags.patch"
eapply_user
@@ -61,13 +63,27 @@ src_prepare() {
src_compile() {
# noweb tries to use notangle and noweb; see bug #50429
cd "${S}/src/c"
( emake ICONC="icont" CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LIBSRC="icon" ) || die
emake ICONC="icont" \
CC="$(tc-getCC)" \
CFLAGS="${CFLAGS}" \
LIBSRC="icon" || die
export PATH="${PATH}:${T}"
cd "${S}/src"
( emake ICONC="icont" CC="$(tc-getCC)" BIN="${T}" LIB="${T}" LIBSRC="icon" install-code ) \
|| die "make temporal install failed."
( emake ICONC="icont" CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LIBSRC="icon" ) || die "make failed"
emake ICONC="icont" \
CC="$(tc-getCC)" \
BIN="${T}" \
LIB="${T}" \
LIBSRC="icon" \
install-code || die "make temporal install failed."
emake ICONC="icont" \
CC="$(tc-getCC)" \
CFLAGS="${CFLAGS}" \
LIBSRC="icon" || die "make failed"
# Set awk to awk not nawk
./awkname awk
@@ -84,6 +100,7 @@ src_install () {
dodir "/usr/libexec/${PN}"
dodir /usr/share/man
dodir /usr/share/texmf-site/tex/inputs
emake ICONC="icont" \
BIN="${ED}/usr/bin" \
LIBSRC="icon" \
@@ -101,8 +118,6 @@ src_install () {
doins -r examples/.
fi
dodoc CHANGES README
if use emacs; then
elisp-install "${PN}" "${S}"/src/elisp/noweb-mode.{el,elc} \
|| die "elisp-install failed"