summaryrefslogtreecommitdiff
path: root/mk/pkgformat/pkg/tests
AgeCommit message (Collapse)AuthorFilesLines
2017-10-04reduce-depends.awk: Also reduce "exact match" and "any version".jlam1-5/+312
Also reduce patterns of the form: pkg-version (exact match) pkg-[0-9]* (fnmatch pattern matching any version)
2017-10-04reduce-depends.awk: Match version strings containing tilde (~).jlam1-0/+25
2017-10-01reduce-depends.awk: Reduce "pkg>1" and "pkg<2" into "pkg>1<2".jlam2-1/+423
Enhance the reduce-depends.awk script to reduce a larger set of dependencies into a single dependency. The patterns representing intervals of version numbers (can be open-ended) are of the form: pkg>lower pkg>=lower pkg<upper pkg<=upper pkg>lower<upper pkg>lower<=upper pkg>=lower<upper pkg>=lower<=upper These patterns are now condensed into a single dependency of the same form. For example, given the following patterns: pkg>=1.0 pkg>2.0 pkg<3.0 pkg<=4.0 pkg>=2.5<3.5 the reduced pattern becomes: pkg>=2.5<3.0 Add the test script used to help with refactoring and adding the new feature to the script. This is a mostly complete rewrite of the script; change the license to the standard 2-clause BSD license used by TNF.
2017-06-02Using script templates implies a dependency on pkgtasks.jlam1-3/+37
The header template loads pkgtasks' load.subr unconditionally, so if any script templates are used, then they imply a dependency on pkgtasks. Trigger the dependency in the "pkgtasks" framework by setting USE_PKGTASKS to "yes".
2017-06-01Make creation of +DEINSTALL/+INSTALL scripts pkgformat-specific.jlam2-0/+283
Move the files needed to generate +DEINSTALL and +INSTALL scripts for the "pkg" format into pkgsrc/mk/pkgformat/pkg. Create new script templates that make use of "pkgtasks" to perform the actual tasks.