summaryrefslogtreecommitdiff
path: root/pkgtools/pkglint
AgeCommit message (Collapse)AuthorFilesLines
2013-01-23Fix typo in variable name.wiz1-2/+2
2013-01-20Test a couple more error paths through main() -> checkitem(). Addschmonz1-3/+36
a couple tests for get_vartypes_map(). TODO: test and refactor checkline_mk_vartype_basic().
2013-01-20pkglint(1) determines its list of basic variable types by greppingschmonz2-13/+49
itself for certain if/elsif conditions. This combination of cleverness and large conditional block should be replaced with simple, table-driven code. But first we have to get the functionality under test, which I've begun to do here. Initialize a package global with the contents of $0, and override it in test (otherwise self-grepping breaks because $0 is the test script). Extract the dirty Test::Trap details to test_unit(). Test main() for a few common values of @ARGV. Notice the aforementioned cleverness because it broke an expected success, and fix it just enough to test get_vartypes_basictypes() for a couple expected types. No functional change intended. I've manually tested the small changes to pkglint.pl and have also verified that a couple packages lint the same as before.
2013-01-19Make it possible to easily write automated tests:schmonz3-5/+38
* minimally adapt pkglint(1) into a "modulino" for testability * verify it still runs normally as a program * create a test script with a few very simple test cases * hook it up to 'make test' * verify that the tests really fail if I go breaking the code under test Meta-addresses PR pkg/46570. New BUILD_DEPENDS, but no functional change, so no PKGREVISION bump. Approved by wiz@.
2012-12-11Update to 4.127ryoon2-6/+6
* Add sun-{jre,jdk}7 support
2012-11-20Add openjdk7 & openjdk7-bin to other JVM listsabs2-3/+4
2012-10-03Bump version for python25 removal changes.wiz1-3/+2
2012-10-03Update for python25 removal.wiz1-2/+2
2012-10-03Bump all packages that use perl, or depend on a p5-* package, orwiz1-1/+2
are called p5-*. I hope that's all of them.
2012-09-16Update documentation for {PYTHON,RUBY,PHP}_VERSION_REQD variables, move themcheusov2-3/+6
to "user variables" section. pkglint is now aware of them. Bump pkglint version. Oked by wiz@
2012-09-15Do not warn about setting PKG_DESTDIR_SUPPORT any longer, it is nowwiz3-11/+4
set by default by the infrastructure. Remove highly obsolete TODO entry about destdir. Bump version.
2012-09-11"user-destdir" is default these daysasau1-2/+1
2012-08-26Improve expand_permission some more. Should fix thewiz2-9/+9
Use of uninitialized value in concatenation (.) or string at /usr/pkg/bin/pkglint line 4777. warnings. Bump version.
2012-08-05If I get to fix the bugs, I might as well OWN it.wiz1-2/+2
2012-08-03Recognize make syntax (make variable) in one more place.asau2-4/+4
2012-08-01Don't enforce purely aesthetic changes.asau2-8/+9
2012-07-27Improve warning about gettext/msgfmt dependency.wiz1-2/+2
In another part pkglint already knows that BUILD_USES_MSGFMT is deprecated, so a second run would have provided the correct answer.
2012-07-22Recognize emacs24nox; bump version.dholland2-5/+5
2012-07-17Really bump version for comment-missing-error change.wiz1-2/+2
2012-07-17Make missing comments in patches an error. Bump version.wiz1-5/+5
The guide prescribes it for quite some time and it's common courtesy for packages modifying packages after you. ok gdt@
2012-07-15pkgtools/pkglint: Add "ada" as valid value for USE_LANGUAGESmarino2-4/+4
The mk/compiler/gcc.mk was recently updated to handle USE_LANGUAGES+= ada which requires the use of the lang/gcc-aux compiler.
2012-07-14regenwiz1-11/+26
2012-07-14mandoc -Tlint cleanupwiz1-5/+2
2012-07-14Update to 4.117:wiz3-8/+19
Recognize another possible permission. Reported by Bug Hunting.
2012-07-13lintpkgsrc files do not belong here. One could argue that a description ofabs3-2158/+0
where they do belong would be unsuitable for polite conversation, but that is not the goal today...
2012-07-10Two more bugfixes, version++wiz1-2/+2
2012-07-10Fix regex_dependency_wildcard and recognize PERL5_LICENSE.wiz1-2/+3
2012-07-10Bump version again for more fixes.wiz1-2/+2
2012-07-10Warn about space before colon in dependency line instead of FATALing out.wiz1-4/+5
Addresses part of PR 46570 by David Holland.
2012-07-10Do not parse Makefiles in files/ or patches/wiz2-4/+6
Addresses another part of PR 46570 by David Holland. Bump version.
2012-07-09Expand permission descriptions in standard warning.wiz2-15/+15
2012-07-09Bump version again for more games fixes.wiz1-2/+2
2012-07-09Handle GAMEMODE.wiz1-2/+2
2012-07-09Fix USE_GAMESGROUP properties.wiz1-2/+2
2012-07-09Allow "." in package names (needed e.g. for gst-plugins0.10-base).wiz2-7/+15
Check package patterns in DEPENDS. Requested by diro in PR 46570. Bump version.
2012-07-09Recognize FETCH_USING as user-settable variable, as intended.wiz1-1/+2
Addresses a comment by diro in PR 46570.
2012-07-09Update to 4.111.wiz1-2/+3
2012-07-09Mention -e when warnings have been found and it wasn't specified.wiz1-3/+3
Update for games handling changes.
2012-07-09Document permissions. Addresses part of PR 46570.wiz1-3/+19
2012-07-09Update for recent (undocument in the guide) changes to games group handlingwiz2-5/+10
2012-07-06adjust to current default php/python srcdir.obache2-5/+5
2012-06-02Do not treat variable GNU_PROGRAM_PREFIX as a special one.cheusov2-4/+3
Dump version.
2012-05-08In parse_makefile_vars() inprove the pattern used to remove comments sosbd1-2/+2
that it doesn't match on backslash quoted hash characters. PR/46422 Bump PKGVERSION.
2012-04-08Update the pattern used for checking option name to allow the plus (+)sbd2-5/+5
character (e.g. as in "c++") Bump version number.
2012-03-10Add missing clang, hp and pcc to ONLY_FOR_COMPILER.cheusov2-5/+5
Dump package version.
2012-03-01Reset maintainer, he resigned.wiz1-2/+2
2012-01-06Add openjdk7* to recognized java versions. From B.ICT A.P. deBROUWER Jr.wiz2-3/+4
in PR 45789. Bump version.
2011-11-29Added 91 to PGSQL_VERSIONS_ACCEPTEDadam1-2/+2
2011-11-28Bump version for NOT_FOR_COMPILER improvement.wiz1-2/+2
2011-11-28Sync NOT_FOR_COMPILER list with supported compiler list.wiz1-2/+2