Changeset View
Changeset View
Standalone View
Standalone View
documentation/content/en/books/porters-handbook/special/_index.adoc
Show First 20 Lines • Show All 601 Lines • ▼ Show 20 Lines | ||||||||||
.... | .... | |||||||||
PORTNAME= tokei | PORTNAME= tokei | |||||||||
DISTVERSIONPREFIX= v | DISTVERSIONPREFIX= v | |||||||||
DISTVERSION= 7.0.2 | DISTVERSION= 7.0.2 | |||||||||
CATEGORIES= devel | CATEGORIES= devel | |||||||||
MAINTAINER= tobik@FreeBSD.org | MAINTAINER= tobik@FreeBSD.org | |||||||||
COMMENT= Display statistics about your code | COMMENT= Display statistics about your code | |||||||||
WWW= https://github.com/XAMPPRocky/tokei/ | ||||||||||
USES= cargo | USES= cargo | |||||||||
USE_GITHUB= yes | USE_GITHUB= yes | |||||||||
GH_ACCOUNT= Aaronepower | GH_ACCOUNT= Aaronepower | |||||||||
.include <bsd.port.mk> | .include <bsd.port.mk> | |||||||||
.... | .... | |||||||||
Show All 28 Lines | ||||||||||
.... | .... | |||||||||
PORTNAME= tokei | PORTNAME= tokei | |||||||||
DISTVERSIONPREFIX= v | DISTVERSIONPREFIX= v | |||||||||
DISTVERSION= 7.0.2 | DISTVERSION= 7.0.2 | |||||||||
CATEGORIES= devel | CATEGORIES= devel | |||||||||
MAINTAINER= tobik@FreeBSD.org | MAINTAINER= tobik@FreeBSD.org | |||||||||
COMMENT= Display statistics about your code | COMMENT= Display statistics about your code | |||||||||
WWW= https://github.com/XAMPPRocky/tokei/ | ||||||||||
USES= cargo | USES= cargo | |||||||||
USE_GITHUB= yes | USE_GITHUB= yes | |||||||||
GH_ACCOUNT= Aaronepower | GH_ACCOUNT= Aaronepower | |||||||||
CARGO_CRATES= aho-corasick-0.6.4 \ | CARGO_CRATES= aho-corasick-0.6.4 \ | |||||||||
ansi_term-0.11.0 \ | ansi_term-0.11.0 \ | |||||||||
arrayvec-0.4.7 \ | arrayvec-0.4.7 \ | |||||||||
▲ Show 20 Lines • Show All 150 Lines • ▼ Show 20 Lines | ||||||||||
==== | ==== | |||||||||
In most cases, it is sufficient to set the `GO_MODULE` variable to the value specified by the `module` directive in `go.mod`: | In most cases, it is sufficient to set the `GO_MODULE` variable to the value specified by the `module` directive in `go.mod`: | |||||||||
[.programlisting] | [.programlisting] | |||||||||
.... | .... | |||||||||
PORTNAME= hey | PORTNAME= hey | |||||||||
PORTVERSION= 0.1.4 | PORTVERSION= 0.1.4 | |||||||||
DISTVERSIONPREFIX= v | DISTVERSIONPREFIX= v | |||||||||
CATEGORIES= benchmarks | CATEGORIES= benchmarks | |||||||||
salvadore: Here and in the following lines you changed the spaces after = sign. Is it intended? Does it… | ||||||||||
Done Inline Actions/usr/ports/benchmarks/hey/Makefile as of the last time I ran portsnap auto has \t there. I suspect pasting changed them to spaces. pauamma_gundo.com: /usr/ports/benchmarks/hey/Makefile as of the last time I ran portsnap auto has \t there. I… | ||||||||||
Not Done Inline ActionsThe Makefile examples used a mix of spaces and tabs before I touched them. I suggest to separate content changes from white-space changes. AFAICT, the examples that use tabs are not rendered nicely, while consistently using blank characters gives good results. But I plan to use the same type of indentation (blank vs. tab) as is used in the COMMENT line above the inserted WWW line. se: The Makefile examples used a mix of spaces and tabs before I touched them.
I suggest to… | ||||||||||
MAINTAINER= dmgk@FreeBSD.org | MAINTAINER= dmgk@FreeBSD.org | |||||||||
COMMENT= Tiny program that sends some load to a web application | COMMENT= Tiny program that sends some load to a web application | |||||||||
WWW= https://github.com/rakyll/hey/ | ||||||||||
LICENSE= APACHE20 | LICENSE= APACHE20 | |||||||||
LICENSE_FILE= ${WRKSRC}/LICENSE | LICENSE_FILE= ${WRKSRC}/LICENSE | |||||||||
USES= go:modules | USES= go:modules | |||||||||
GO_MODULE= github.com/rakyll/hey | GO_MODULE= github.com/rakyll/hey | |||||||||
PLIST_FILES= bin/hey | PLIST_FILES= bin/hey | |||||||||
.include <bsd.port.mk> | .include <bsd.port.mk> | |||||||||
.... | .... | |||||||||
If the "easy" way is not adequate or more control over dependencies is needed, the full porting process is described below. | If the "easy" way is not adequate or more control over dependencies is needed, the full porting process is described below. | |||||||||
Creating a Go-based port is a five-stage process. | Creating a Go-based port is a five-stage process. | |||||||||
Done Inline Actions
While here pauamma_gundo.com: While here | ||||||||||
Not Done Inline ActionsI'd rather not mix changes to unrelated content with the changes that introduce WWW= in the Makefiles. But I can apply this change in a separate commit. se: I'd rather not mix changes to unrelated content with the changes that introduce WWW= in the… | ||||||||||
First we need to provide a ports template that fetches the application distribution file: | First we need to provide a ports template that fetches the application distribution file: | |||||||||
[.programlisting] | [.programlisting] | |||||||||
.... | .... | |||||||||
PORTNAME= ghq | PORTNAME= ghq | |||||||||
DISTVERSIONPREFIX= v | DISTVERSIONPREFIX= v | |||||||||
DISTVERSION= 0.12.5 | DISTVERSION= 0.12.5 | |||||||||
CATEGORIES= devel | CATEGORIES= devel | |||||||||
MAINTAINER= tobik@FreeBSD.org | MAINTAINER= tobik@FreeBSD.org | |||||||||
COMMENT= Remote repository management made easy | COMMENT= Remote repository management made easy | |||||||||
WWW= https://github.com/x-motemen/ghq/ | ||||||||||
USES= go:modules | USES= go:modules | |||||||||
USE_GITHUB= yes | USE_GITHUB= yes | |||||||||
GH_ACCOUNT= motemen | GH_ACCOUNT= motemen | |||||||||
.include <bsd.port.mk> | .include <bsd.port.mk> | |||||||||
.... | .... | |||||||||
Show All 33 Lines | ||||||||||
.... | .... | |||||||||
PORTNAME= ghq | PORTNAME= ghq | |||||||||
DISTVERSIONPREFIX= v | DISTVERSIONPREFIX= v | |||||||||
DISTVERSION= 0.12.5 | DISTVERSION= 0.12.5 | |||||||||
CATEGORIES= devel | CATEGORIES= devel | |||||||||
MAINTAINER= tobik@FreeBSD.org | MAINTAINER= tobik@FreeBSD.org | |||||||||
COMMENT= Remote repository management made easy | COMMENT= Remote repository management made easy | |||||||||
WWW= https://github.com/x-motemen/ghq/ | ||||||||||
USES= go:modules | USES= go:modules | |||||||||
USE_GITHUB= yes | USE_GITHUB= yes | |||||||||
GH_ACCOUNT= motemen | GH_ACCOUNT= motemen | |||||||||
GH_TUPLE= Songmu:gitconfig:v0.0.2:songmu_gitconfig/vendor/github.com/Songmu/gitconfig \ | GH_TUPLE= Songmu:gitconfig:v0.0.2:songmu_gitconfig/vendor/github.com/Songmu/gitconfig \ | |||||||||
daviddengcn:go-colortext:186a3d44e920:daviddengcn_go_colortext/vendor/github.com/daviddengcn/go-colortext \ | daviddengcn:go-colortext:186a3d44e920:daviddengcn_go_colortext/vendor/github.com/daviddengcn/go-colortext \ | |||||||||
go-yaml:yaml:v2.2.2:go_yaml_yaml/vendor/gopkg.in/yaml.v2 \ | go-yaml:yaml:v2.2.2:go_yaml_yaml/vendor/gopkg.in/yaml.v2 \ | |||||||||
golang:net:3ec191127204:golang_net/vendor/golang.org/x/net \ | golang:net:3ec191127204:golang_net/vendor/golang.org/x/net \ | |||||||||
▲ Show 20 Lines • Show All 64 Lines • ▼ Show 20 Lines | ||||||||||
[.programlisting] | [.programlisting] | |||||||||
.... | .... | |||||||||
PORTNAME= ShellCheck | PORTNAME= ShellCheck | |||||||||
DISTVERSION= 0.6.0 | DISTVERSION= 0.6.0 | |||||||||
CATEGORIES= devel | CATEGORIES= devel | |||||||||
MAINTAINER= haskell@FreeBSD.org | MAINTAINER= haskell@FreeBSD.org | |||||||||
COMMENT= Shell script analysis tool | COMMENT= Shell script analysis tool | |||||||||
WWW= https://www.shellcheck.net/ | ||||||||||
USES= cabal | USES= cabal | |||||||||
.include <bsd.port.mk> | .include <bsd.port.mk> | |||||||||
.... | .... | |||||||||
This minimal Makefile fetches the distribution file with the `cabal-extract` helper target: | This minimal Makefile fetches the distribution file with the `cabal-extract` helper target: | |||||||||
▲ Show 20 Lines • Show All 605 Lines • ▼ Show 20 Lines | ||||||||||
PORTNAME= regexxer | PORTNAME= regexxer | |||||||||
DISTVERSION= 0.10 | DISTVERSION= 0.10 | |||||||||
CATEGORIES= devel textproc gnome | CATEGORIES= devel textproc gnome | |||||||||
MASTER_SITES= GNOME | MASTER_SITES= GNOME | |||||||||
MAINTAINER= kwm@FreeBSD.org | MAINTAINER= kwm@FreeBSD.org | |||||||||
COMMENT= Interactive tool for performing search and replace operations | COMMENT= Interactive tool for performing search and replace operations | |||||||||
WWW= http://regexxer.sourceforge.net/ | ||||||||||
USES= gettext gmake localbase:ldflags pathfix pkgconfig tar:xz | USES= gettext gmake localbase:ldflags pathfix pkgconfig tar:xz | |||||||||
GNU_CONFIGURE= yes | GNU_CONFIGURE= yes | |||||||||
USE_GNOME= gnomeprefix intlhack gtksourceviewmm3 | USE_GNOME= gnomeprefix intlhack gtksourceviewmm3 | |||||||||
GLIB_SCHEMAS= org.regexxer.gschema.xml | GLIB_SCHEMAS= org.regexxer.gschema.xml | |||||||||
.include <bsd.port.mk> | .include <bsd.port.mk> | |||||||||
▲ Show 20 Lines • Show All 1,786 Lines • ▼ Show 20 Lines | ||||||||||
[.programlisting] | [.programlisting] | |||||||||
.... | .... | |||||||||
PORTNAME= Date | PORTNAME= Date | |||||||||
DISTVERSION= 1.4.3 | DISTVERSION= 1.4.3 | |||||||||
CATEGORIES= devel www pear | CATEGORIES= devel www pear | |||||||||
MAINTAINER= example@domain.com | MAINTAINER= example@domain.com | |||||||||
COMMENT= PEAR Date and Time Zone Classes | COMMENT= PEAR Date and Time Zone Classes | |||||||||
WWW= https://pear.php.net/package/Date/ | ||||||||||
USES= pear | USES= pear | |||||||||
.include <bsd.port.mk> | .include <bsd.port.mk> | |||||||||
.... | .... | |||||||||
==== | ==== | |||||||||
Show All 31 Lines | ||||||||||
[.programlisting] | [.programlisting] | |||||||||
.... | .... | |||||||||
PORTNAME= Horde_Core | PORTNAME= Horde_Core | |||||||||
DISTVERSION= 2.14.0 | DISTVERSION= 2.14.0 | |||||||||
CATEGORIES= devel www pear | CATEGORIES= devel www pear | |||||||||
MAINTAINER= horde@FreeBSD.org | MAINTAINER= horde@FreeBSD.org | |||||||||
COMMENT= Horde Core Framework libraries | COMMENT= Horde Core Framework libraries | |||||||||
WWW= https://pear.horde.org/ | ||||||||||
OPTIONS_DEFINE= KOLAB SOCKETS | OPTIONS_DEFINE= KOLAB SOCKETS | |||||||||
KOLAB_DESC= Enable Kolab server support | KOLAB_DESC= Enable Kolab server support | |||||||||
SOCKETS_DESC= Depend on sockets PHP extension | SOCKETS_DESC= Depend on sockets PHP extension | |||||||||
USES= horde | USES= horde | |||||||||
USE_PHP= session | USE_PHP= session | |||||||||
▲ Show 20 Lines • Show All 108 Lines • ▼ Show 20 Lines | ||||||||||
[.programlisting] | [.programlisting] | |||||||||
.... | .... | |||||||||
PORTNAME= sample | PORTNAME= sample | |||||||||
DISTVERSION= 1.2.3 | DISTVERSION= 1.2.3 | |||||||||
CATEGORIES= devel | CATEGORIES= devel | |||||||||
MAINTAINER= john@doe.tld | MAINTAINER= john@doe.tld | |||||||||
COMMENT= Python sample module | COMMENT= Python sample module | |||||||||
WWW= https://pypi.org/project/sample/ | ||||||||||
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR} | RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR} | |||||||||
USES= python | USES= python | |||||||||
USE_PYTHON= autoplist distutils | USE_PYTHON= autoplist distutils | |||||||||
.include <bsd.port.mk> | .include <bsd.port.mk> | |||||||||
.... | .... | |||||||||
▲ Show 20 Lines • Show All 642 Lines • ▼ Show 20 Lines | ||||||||||
[.programlisting] | [.programlisting] | |||||||||
.... | .... | |||||||||
PORTNAME= sample | PORTNAME= sample | |||||||||
DISTVERSION= 1.2.3 | DISTVERSION= 1.2.3 | |||||||||
CATEGORIES= whatever | CATEGORIES= whatever | |||||||||
MAINTAINER= john@doe.tld | MAINTAINER= john@doe.tld | |||||||||
COMMENT= Sample | COMMENT= Sample | |||||||||
WWW= https://github.com/lua_sample/sample/ | ||||||||||
RUN_DEPENDS= ${LUA_REFMODLIBDIR}/lpeg.so:devel/lua-lpeg@${LUA_FLAVOR} | RUN_DEPENDS= ${LUA_REFMODLIBDIR}/lpeg.so:devel/lua-lpeg@${LUA_FLAVOR} | |||||||||
USES= lua | USES= lua | |||||||||
.include <bsd.port.mk> | .include <bsd.port.mk> | |||||||||
.... | .... | |||||||||
==== | ==== | |||||||||
[[lua-mod-Makefile]] | [[lua-mod-Makefile]] | |||||||||
.Makefile for a simple Lua module | .Makefile for a simple Lua module | |||||||||
[example] | [example] | |||||||||
==== | ==== | |||||||||
[.programlisting] | [.programlisting] | |||||||||
.... | .... | |||||||||
PORTNAME= sample | PORTNAME= sample | |||||||||
DISTVERSION= 1.2.3 | DISTVERSION= 1.2.3 | |||||||||
CATEGORIES= whatever | CATEGORIES= whatever | |||||||||
PKGNAMEPREFIX= ${LUA_PKGNAMEPREFIX} | PKGNAMEPREFIX= ${LUA_PKGNAMEPREFIX} | |||||||||
MAINTAINER= john@doe.tld | MAINTAINER= john@doe.tld | |||||||||
COMMENT= Sample | COMMENT= Sample | |||||||||
WWW= https://github.com/lua_sample/sample/ | ||||||||||
USES= lua:module | USES= lua:module | |||||||||
DOCSDIR= ${LUA_DOCSDIR} | DOCSDIR= ${LUA_DOCSDIR} | |||||||||
.include <bsd.port.mk> | .include <bsd.port.mk> | |||||||||
.... | .... | |||||||||
▲ Show 20 Lines • Show All 484 Lines • Show Last 20 Lines |
Here and in the following lines you changed the spaces after = sign. Is it intended? Does it actually change the rendered text?