Commit graph

157 commits

Author SHA1 Message Date
rillig
a125668415 pkgtools/url2pkg: rewrite regular expression to avoid confusing mcedit 2019-08-18 21:04:37 +00:00
rillig
22c2dd5000 pkgtools/url2pkg: add a few more tests 2019-08-18 18:02:48 +00:00
rillig
b03b08976f pkgtools/url2pkg: document and clean up the code 2019-08-18 17:34:13 +00:00
rillig
3cd16da354 pkgtools/url2pkg: rename helper functions 2019-08-18 16:18:04 +00:00
rillig
d4af333aea pkgtools/url2pkg: migrate from GitHub to PyPI if necessary
Suggested by gdt@ via private mail.
2019-08-18 16:09:01 +00:00
rillig
8a91656475 pkgtools/url2pkg: move chdir into the main test function 2019-08-18 13:59:38 +00:00
rillig
f95f30668b pkgtools/url2pkg: consistently use double quotes for string literals 2019-08-18 13:49:13 +00:00
rillig
b336a24430 pkgtools/url2pkg: add secondary category for Perl and Python modules 2019-08-18 13:32:21 +00:00
rillig
ffd7a81520 pkgtools/url2pkg: determine the dependencies of Python modules 2019-08-18 11:26:33 +00:00
rillig
e31d74bb59 pkgtools/url2pkg: remove unnecessary local variable 2019-08-18 07:51:40 +00:00
rillig
53e0f2f323 pkgtools/url2pkg: update SourceForge and GitHub to use https only 2019-08-18 07:47:58 +00:00
rillig
f1c6a5b7ac pkgtools/url2pkg: rename magic subroutines
There's nothing magic about generating a package Makefile based on the
extracted distfile.
2019-08-18 07:10:32 +00:00
rillig
34d88b9637 pkgtools/url2pkg: extract code for writing lines to file 2019-08-18 06:56:20 +00:00
rillig
debcaff424 pkgtools/url2pkg: add abstraction for variable assignments 2019-08-18 06:41:16 +00:00
maya
8090649252 url2pkg 2.31:
maya:
detect meson

rillig:
refactor generation of Makefiles
rename local variables to match pkgsrc counterparts
make print_section simpler to use
run editor with line number only if supported
refactoring to make Makefile generation testable
make dist_subdir a local variable
initialize dist_subdir early
fix indentation
fix for p5-HTML-Quoted
fix parsing of mk/fetch/sites.mk
2019-08-18 06:23:19 +00:00
rillig
c8165cd5fe pkgtools/url2pkg: refactor generation of Makefiles
By generating the content of the files before actually writing it to
disk, the code becomes easier to test.
2019-08-18 06:10:38 +00:00
rillig
a512e58bcd pkgtools/url2pkg: rename local variables to match pkgsrc counterparts 2019-08-18 05:47:53 +00:00
rillig
808726fee3 pkgtools/url2pkg: make print_section simpler to use 2019-08-18 05:43:28 +00:00
rillig
5d93f64634 pkgtools/url2pkg: run editor with line number only if supported
For example, ed doesn't support line numbers.
2019-08-18 05:32:00 +00:00
rillig
cd66a9f66d pkgtools/url2pkg: refactoring to make Makefile generation testable 2019-08-17 13:55:41 +00:00
rillig
c2795bab59 pkgtools/url2pkg: make dist_subdir a local variable 2019-08-17 13:25:50 +00:00
rillig
45f97a2077 pkgtools/url2pkg: initialize dist_subdir early 2019-08-17 13:23:35 +00:00
rillig
1e8f792cb2 pkgtools/url2pkg: fix indentation 2019-08-17 13:21:42 +00:00
rillig
c2e9450afe pkgtools/url2pkg: fix for p5-HTML-Quoted 2019-08-17 13:12:00 +00:00
rillig
1dc738feb7 pkgtools/url2pkg: reduce code indentation 2019-08-17 12:50:00 +00:00
rillig
6cfa994ef0 pkgtools/url2pkg: fix parsing of mk/fetch/sites.mk
Before, the final line of each MASTER_SITE_* definition had been skipped
because it didn't end with a backslash. That part of the regular
expression had always been intended to be optional. That bug lasted
almost 13 years, which is remarkably long but not the record.

The mk/fetch/sites.mk is now closed properly, which has gone unnoticed
for almost 13 years as well.

Google Code doesn't exist anymore, therefore there's no point in keeping
it.
2019-08-17 11:57:36 +00:00
wiz
84e123ddd2 Bump PKGREVISIONs for perl 5.30.0 2019-08-11 13:17:48 +00:00
maya
8d100b7a13 url2pkg 2.30:
- Support for creating much of the necessary makefile for a Rust Cargo package

Correct package license
2019-05-25 03:58:49 +00:00
rillig
c7ff05f63e all: replace SUBST_SED with the simpler SUBST_VARS
pkglint -Wall -r --only "substitution command" -F

With manual review and indentation fixes since pkglint doesn't get that
part correct in every case.
2019-05-23 19:22:54 +00:00
maya
6c25dec844 Remove clauses 3,4 from TNF-only copyright blocks.
This is based on the decision The NetBSD Foundation made in 2008 to
do so, which was already applied to src.

This change has been applied to code which is likely not in other
repositories.

ok board@, reviewed by riastradh@
2018-08-22 20:48:36 +00:00
wiz
93b46879c7 Recursive bump for perl5-5.28.0 2018-08-22 09:43:40 +00:00
rillig
758ca18c6a url2pkg: remove trailing whitespace 2018-05-28 20:18:01 +00:00
rillig
4fb0a3154a pkgtools/url2pkg: refactor variable alignment code
The new code is more expressive and uses fewer magic numbers.
2018-04-08 20:13:54 +00:00
rillig
5438820cf3 Update url2pkg-2.29: Fix generation of Perl packages.
The WriteMakefile subroutine was not exported properly.
2018-01-07 11:20:18 +00:00
wiz
5c7df860ec Fix HOMEPAGE when packaging github releases. Bump version. 2016-09-27 17:10:09 +00:00
rillig
9290c4a9bd Fixed pkglint warning. 2016-07-10 13:31:54 +00:00
wiz
73716d23de Bump PKGREVISION for perl-5.24.0 for everything mentioning perl. 2016-07-09 06:38:30 +00:00
wiz
10596c46f3 Fix typo in github handling.
Bump version.
2016-06-26 19:03:33 +00:00
rillig
3878c6ec63 Fixed error message when url2pkg is run from a non-pkgsrc directory.
See http://stackoverflow.com/q/36481302. Bump version.
2016-06-10 21:43:04 +00:00
wiz
b6801123fc Use better HOMEPAGEs for github. Bump version. 2016-06-01 12:45:59 +00:00
wiz
27a963a9cd If URL is not recognized as "proper" github URL, don't die, but just print
a warning and continue.
Bump version.
2015-07-15 19:01:44 +00:00
wiz
9c64019527 Fix uninitialized variables warnings.
From ISIHARA Takanori in PR 49980.
2015-06-17 11:59:58 +00:00
wiz
0982effce2 Recursive PKGREVISION bump for all packages mentioning 'perl',
having a PKGNAME of p5-*, or depending such a package,
for perl-5.22.0.
2015-06-12 10:48:20 +00:00
rodent
4d31c3a113 Don't consider "package.xml" as a candidate for ${WRKSRC}. This can affect
PECL packages. Bump PKGVERSION.
2015-04-07 00:10:33 +00:00
rodent
499539b2fc Initial support for automating the creation of Makefiles from GitHub URLs.
Initial support for automating the addition of DIST_SUBDIR. Bump PKGVERSION
2015-04-04 04:00:49 +00:00
wiz
cda18437be Remove pkgviews: don't set PKG_INSTALLATION_TYPES in Makefiles. 2014-10-09 14:05:50 +00:00
schmonz
14f9c86492 Squelch warnings about smartmatch being experimental. 2014-08-01 15:44:13 +00:00
rodent
79ee8d67fa Don't set EXTRACT_SUFX if it's .gem. Change if statement to use a switch
and exclude ${WRKDIR}/.gemspec from WRKSRC candidates. Bump PKGVERSION.
2014-06-25 12:15:10 +00:00
wiz
7eeb51b534 Bump for perl-5.20.0.
Do it for all packages that
* mention perl, or
* have a directory name starting with p5-*, or
* depend on a package starting with p5-
like last time, for 5.18, where this didn't lead to complaints.
Let me know if you have any this time.
2014-05-29 23:35:13 +00:00
rodent
aa45dc4fb4 Don't consider ${WRKDIR}/pax_global_header as a possibility for ${WRKSRC}.
Bump PKGVERSION.
2014-05-08 10:35:58 +00:00