Index: head/net/urlendec/pkg-plist =================================================================== --- head/net/urlendec/pkg-plist (revision 568427) +++ head/net/urlendec/pkg-plist (nonexistent) @@ -1,4 +0,0 @@ -bin/urlencode -bin/urldecode -%%PORTDOCS%%share/doc/urlendec/index.html -%%PORTDOCS%%share/doc/urlendec/rfc1738.txt Property changes on: head/net/urlendec/pkg-plist ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/net/urlendec/Makefile =================================================================== --- head/net/urlendec/Makefile (revision 568427) +++ head/net/urlendec/Makefile (revision 568428) @@ -1,26 +1,38 @@ # Created by: G. Adam Stanislav # $FreeBSD$ 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 Index: head/net/urlendec/pkg-descr =================================================================== --- head/net/urlendec/pkg-descr (revision 568427) +++ head/net/urlendec/pkg-descr (revision 568428) @@ -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/