Date: Mon, 15 Mar 2021 04:46:47 +0000 (UTC) From: Alexey Dokuchaev <danfe@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r568428 - head/net/urlendec Message-ID: <202103150446.12F4klWJ056991@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: danfe Date: Mon Mar 15 04:46:47 2021 New Revision: 568428 URL: https://svnweb.freebsd.org/changeset/ports/568428 Log: - Unbreak the port by assembling and linking this 32-bit code correctly so it works on both amd64 and i386 - Amend COMMENT to be more specific, add LICENSE (BSD2CLAUSE) - Convert to PLIST_FILES/PORTDOCS and drop four-line pkg-plist - Install documentation files in the dedicated helper target - Extend the port description and fix a minor typo while here Deleted: head/net/urlendec/pkg-plist Modified: head/net/urlendec/Makefile head/net/urlendec/pkg-descr Modified: head/net/urlendec/Makefile ============================================================================== --- head/net/urlendec/Makefile Mon Mar 15 04:18:32 2021 (r568427) +++ head/net/urlendec/Makefile Mon Mar 15 04:46:47 2021 (r568428) @@ -3,24 +3,36 @@ PORTNAME= urlendec PORTVERSION= 1.0 +PORTREVISION= 1 CATEGORIES= net MASTER_SITES= http://www.whizkidtech.redprince.net/fports/ MAINTAINER= ports@FreeBSD.org -COMMENT= URL encoder and decoder +COMMENT= URL encoder and decoder written in assembly -BUILD_DEPENDS= nasm:devel/nasm +LICENSE= BSD2CLAUSE -ONLY_FOR_ARCHS= i386 +ONLY_FOR_ARCHS= amd64 i386 +ONLY_FOR_ARCHS_REASON= written in x86 assembly language -BINARIES= urlencode urldecode -DOCFILES= index.html rfc1738.txt +BUILD_DEPENDS= nasm:devel/nasm +PLIST_FILES= bin/urlencode bin/urldecode +PORTDOCS= index.html rfc1738.txt + OPTIONS_DEFINE= DOCS +post-patch: + @${REINPLACE_CMD} -e '/^[[:blank:]]*ld/s,-o,-m elf_i386_fbsd &, \ + ; /^[[:blank:]]*nasm/s,elf,&32,' ${WRKSRC}/Makefile + @${REINPLACE_CMD} -e '/^section/s,code,text,' ${WRKSRC}/*.asm + do-install: - ${INSTALL_PROGRAM} ${BINARIES:S,^,${WRKSRC}/,} ${STAGEDIR}${PREFIX}/bin - @${MKDIR} ${STAGEDIR}${PREFIX}/share/doc/urlendec - ${INSTALL_DATA} ${DOCFILES:S,^,${WRKSRC}/,} ${STAGEDIR}${PREFIX}/share/doc/urlendec + ${INSTALL_PROGRAM} ${PLIST_FILES:[1..2]:T:S,^,${WRKSRC}/,} \ + ${STAGEDIR}${PREFIX}/bin + +do-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR} .include <bsd.port.mk> Modified: head/net/urlendec/pkg-descr ============================================================================== --- head/net/urlendec/pkg-descr Mon Mar 15 04:18:32 2021 (r568427) +++ head/net/urlendec/pkg-descr Mon Mar 15 04:46:47 2021 (r568428) @@ -1,6 +1,7 @@ -A set of two tools to URL encode and URL decode any stream of data, either -from the command line or from standard input. +A set of two tools to URL encode and URL decode any stream of data, +read either from the command line or from standard input. Written +in assembly language, they are tiny and very fast. -See RFC 1738, section 2.2, for an eplanation of URL encoding. +See RFC 1738, section 2.2, for an explanation of URL encoding. WWW: http://www.whizkidtech.redprince.net/urlendec/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202103150446.12F4klWJ056991>