Skip to content

Commit

Permalink
lang/guile1: Remove USES=makeinfo
Browse files Browse the repository at this point in the history
- Distfile ships with pregenerated info files
- Remove patches related to texi files
- Utilize USES=localbase
  • Loading branch information
5u623l20 committed Oct 24, 2023
1 parent 33d962f commit a56bbe0
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 115 deletions.
27 changes: 14 additions & 13 deletions lang/guile1/Makefile
Expand Up @@ -19,9 +19,8 @@ LIB_DEPENDS= libltdl.so:devel/libltdl \
# our own version, in order to avoid conflicts.
RUN_DEPENDS= guile-aclocal>=3:lang/guile-aclocal

USES= guile:${PORTVERSION:R},env \
autoreconf cpe gmake libtool makeinfo ncurses pathfix \
readline
USES= guile:${PORTVERSION:R},env autoreconf cpe gmake libtool \
localbase ncurses pathfix readline
CPE_VENDOR= gnu
USE_LDCONFIG= yes

Expand All @@ -32,8 +31,7 @@ CONFIGURE_ARGS+=--program-suffix=-${GUILE_VER} \
INSTALL_TARGET= install-strip

CFLAGS+= -fwrapv
CPPFLAGS+= -I${LOCALBASE}/include
LIBS+= -L${LOCALBASE}/lib

PORTSCOUT= limit:^1\.

INFO= goops guile-tut guile r5rs
Expand All @@ -46,25 +44,24 @@ NLS_USES= gettext
NLS_USES_OFF= gettext-tools
NLS_CONFIGURE_ENABLE= nls

post-extract:
@${FIND} ${WRKSRC}/doc -name "*.info*" -delete

REINPLACE_FILES_1= libguile/smob.c libguile/filesys.c libguile/gc.c \
libguile/mallocs.c libguile/eval.c libguile/gc-malloc.c \
libguile/ports.c libguile/gc-mark.c libguile/gc_os_dep.c

REINPLACE_FILES_2= guile-config/guile-config.in

REINPLACE_FILES_3= PROGRAM frisk read-text-outline generate-autoload \
scan-api api-diff lint snarf-check-and-output-texi \
autofrisk punify snarf-guile-m4-docs display-commentary \
read-rfc822 summarize-guile-TODO doc-snarf \
read-scheme-source use2dot

post-extract:
${MV} ${WRKSRC}/doc/guile.1 ${WRKSRC}/doc/guile${GUILE_SFX}.1

post-patch:
@cd ${WRKSRC} ; \
${REINPLACE_CMD} -e 's|<malloc\.h>|<stdlib.h>|g' ${REINPLACE_FILES_1}
@${REINPLACE_CMD} -e 's|$$(libdir)|$$(libdir)data|g' ${WRKSRC}/Makefile.am
@${REINPLACE_CMD} -e 's|srfi doc examples|srfi examples|g' \
${WRKSRC}/Makefile.am
@${TOUCH} ${WRKSRC}/Makefile.in
@cd ${WRKSRC} ; \
${REINPLACE_CMD} -e '1s/guile/guile-${GUILE_VER}/' ${REINPLACE_FILES_2}
Expand All @@ -77,7 +74,11 @@ post-install:
for p in guile guile-tools guile-config guile-snarf; do \
${LN} -s $${p}-${GUILE_VER} ${STAGEDIR}${PREFIX}/bin/$${p}${GUILE_SFX}; \
done
${MV} ${STAGEDIR}${PREFIX}/man/man1/guile-${GUILE_VER}.1 \
${STAGEDIR}${PREFIX}/man/man1/guile${GUILE_SFX}.1
${INSTALL_MAN} ${WRKSRC}/doc/guile${GUILE_SFX}.1 ${STAGEDIR}${PREFIX}/man/man1/
${MKDIR} ${STAGEDIR}${PREFIX}/${GUILE_INFO_PATH}
${INSTALL_DATA} ${WRKSRC}/doc/goops/goops.info ${STAGEDIR}${PREFIX}/${GUILE_INFO_PATH}/
${INSTALL_DATA} ${WRKSRC}/doc/tutorial/guile-tut.info ${STAGEDIR}${PREFIX}/${GUILE_INFO_PATH}/
${INSTALL_DATA} ${WRKSRC}/doc/ref/guile.info ${STAGEDIR}${PREFIX}/${GUILE_INFO_PATH}/
${INSTALL_DATA} ${WRKSRC}/doc/r5rs/r5rs.info ${STAGEDIR}${PREFIX}/${GUILE_INFO_PATH}/

.include <bsd.port.mk>
10 changes: 0 additions & 10 deletions lang/guile1/files/patch-doc-ref-guile.texi

This file was deleted.

19 changes: 0 additions & 19 deletions lang/guile1/files/patch-doc__goops__goops.texi

This file was deleted.

12 changes: 0 additions & 12 deletions lang/guile1/files/patch-doc__r5rs__r5rs.texi

This file was deleted.

11 changes: 0 additions & 11 deletions lang/guile1/files/patch-doc__ref__fdl.texi

This file was deleted.

11 changes: 0 additions & 11 deletions lang/guile1/files/patch-doc__ref__gh.texi

This file was deleted.

39 changes: 0 additions & 39 deletions lang/guile1/files/patch-doc__tutorial__guile-tut.texi

This file was deleted.

0 comments on commit a56bbe0

Please sign in to comment.