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