From 5efc728395eee8058ad48806e8ade0f221894c38 Mon Sep 17 00:00:00 2001 From: Pietro Cerutti Date: Tue, 23 Jan 2018 08:51:20 +0000 Subject: [PATCH] security/libtomcrypt: use official tarball, install PDF, bump PORTREVISION Reported by: mat --- security/libtomcrypt/Makefile | 17 +++++++++++------ security/libtomcrypt/distinfo | 6 +++--- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/security/libtomcrypt/Makefile b/security/libtomcrypt/Makefile index 31fe975f1b69..3a5ca13c8384 100644 --- a/security/libtomcrypt/Makefile +++ b/security/libtomcrypt/Makefile @@ -3,8 +3,10 @@ PORTNAME= libtomcrypt PORTVERSION= 1.18.1 -DISTVERSIONPREFIX= v +PORTREVISION= 1 CATEGORIES= security +MASTER_SITES= https://github.com/libtom/${PORTNAME}/releases/download/v${PORTVERSION}/ +DISTNAME= crypt-${PORTVERSION} MAINTAINER= gahr@FreeBSD.org COMMENT= Comprehensive, modular, and portable cryptographic toolkit @@ -12,18 +14,17 @@ COMMENT= Comprehensive, modular, and portable cryptographic toolkit LICENSE= PD LICENSE_FILE= ${WRKSRC}/LICENSE +WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} + CFLAGS+= -I${LOCALBASE}/include EXTRALIBS= -L${LOCALBASE}/lib MAKEFILE= makefile.shared ALL_TARGET= library MAKE_ARGS= INCPATH="${PREFIX}/include" LIBPATH="${PREFIX}/lib" \ EXTRALIBS="${EXTRALIBS}" -USES= gmake libtool:build +USES= gmake libtool:build tar:xz USE_LDCONFIG= yes -USE_GITHUB= yes -GH_ACCOUNT= libtom - OPTIONS_DEFINE= DOCS OPTIONS_MULTI= MATH OPTIONS_MULTI_MATH= LIBTOMMATH TOMSFASTMATH GMP @@ -44,7 +45,7 @@ GMP_LIB_DEPENDS= libgmp.so:math/gmp GMP_CFLAGS= -DGMP_DESC GMP_VARS= EXTRALIBS+=-lgmp -DOCS_MAKE_ARGS_OFF= NODOCS=yes +PORTDOCS= * post-patch: @${REINPLACE_CMD} -e 's|gcc|${CC}|' -e 's| make | $$(MAKE) |' \ @@ -54,6 +55,10 @@ post-patch: post-install: @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libtomcrypt.so.1 +post-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/doc/crypt.pdf ${STAGEDIR}${DOCSDIR} + do-test: # TomsFastMath @${ECHO_CMD} "Testing TomsFastMath" diff --git a/security/libtomcrypt/distinfo b/security/libtomcrypt/distinfo index e5e136b8f31c..f726c17b9436 100644 --- a/security/libtomcrypt/distinfo +++ b/security/libtomcrypt/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1516618104 -SHA256 (libtom-libtomcrypt-v1.18.1_GH0.tar.gz) = e1319d77bf8ac296b69cf68f66e4dadfb68a8519bd684cc83d29b8d6754d10ef -SIZE (libtom-libtomcrypt-v1.18.1_GH0.tar.gz) = 2299746 +TIMESTAMP = 1516696801 +SHA256 (crypt-1.18.1.tar.xz) = 57c13a34fbfd45696189d19e47864e48f4e5c11590c29b444accb8edbf047f14 +SIZE (crypt-1.18.1.tar.xz) = 2614492