summaryrefslogtreecommitdiff
path: root/pkgtools/url2pkg/files
AgeCommit message (Collapse)AuthorFilesLines
2019-11-18pkgtools/url2pkg: add unit test for USE_TOOLSrillig1-1/+4
2019-11-18pkgtools/url2pkg: update to 19.3.7rillig2-4/+26
Changes since 19.3.6: Detect whether the package uses GNU Make, based on the top-level Makefile.
2019-11-14pkgtools/url2pkg: update to 19.3.6rillig1-2/+5
Changes since 19.3.5: No longer print a stack trace when Ctrl+C is pressed.
2019-10-28pkgtools/url2pkg: update to 19.3.5rillig2-17/+68
Changes since 19.3.4: Added the license names from R2pkg and texlive2pkg.
2019-10-27pkgtools/url2pkg: update to 19.3.4rillig5-22/+82
Changes since 19.3.3: The code that handles license names is the same for Python and Perl modules. Python packages that use distutils.extension can be handled. An example package is devel/py-pysha3. The DESCR file is filled from the package's README file. The PLIST is generated with some comments providing further assistance.
2019-10-27pkgtools/url2pkg: move license handling from Python to common coderillig3-36/+87
This way, the code is shared between Python modules, Perl modules, and maybe in the future R packages. No functional change.
2019-10-13pkgtools/url2pkg: remove unnecessary update_vars fieldrillig2-17/+23
2019-10-12pkgtools/url2pkg: rename type Url2Pkg to Globalsrillig2-152/+152
2019-10-12pkgtools/url2pkg: fix type hinting declarationsrillig2-75/+116
2019-10-07Rename py-meson to meson.prlw12-4/+4
The motivation is to consider meson as an application, so there is only one copy on the system, and as a python 3 program, it can build python 2 packages.
2019-10-06pkgtools/url2pkg: remove Perl implementationrillig2-1277/+0
The Python implementation has received more bugfixes, new features and handles all kinds of edge cases better. All previous features have been either copied or intentionally omitted.
2019-10-06pkgtools/url2pkg: update man pagerillig1-46/+18
2019-10-06pkgtools/url2pkg: refer to R2pkg for creating R packagesrillig2-2/+16
2019-10-06pkgtools/url2pkg: improve determining WRKSRCrillig2-37/+64
For setting WRKSRC, only the directories in WRKDIR are relevant, not the files.
2019-10-06pkgtools/url2pkg: fix version tag detectionrillig2-11/+5
2019-10-05pkgtools/url2pkg: update to 19.3.2rillig3-9/+15
Changes since 19.3.1 (only to the Python implementation): * In Python packages, the variables LICENSE, HOMEPAGE and COMMENT are filled from their counterparts in setup.py, no matter whether the package uses setuptools or distutils.core. * For buildlink3 dependencies, the variables BUILDLINK_DEPENDS and BUILDLINK_API_DEPENDS are added to the package Makefile. * The DESCR and PLIST files are only created if they are missing. Existing files are not overwritten. * Packages that contain .po files will set USE_PKGLOCALEDIR=yes. Before, only packages that contained .mo or .gmo did that. * More download URLs from SourceForge can be handled. * SourceForge packages get their HOMEPAGE set correctly. * When matching the URL against the MASTER_SITE_* variables, the protocol is ignored. This allows https URLs to use the MASTER_SITE_GNU, which still uses http. * Python packages from GitHub only get their MASTER_SITES converted to PyPI if they can be actually downloaded from there as well. This check was missing before.
2019-10-05pkgtools/url2pkg: clean up path handlingrillig2-104/+110
2019-10-05pkgtools/url2pkg: clean up coderillig2-15/+14
2019-10-05pkgtools/url2pkg: add test for main functionrillig2-39/+94
2019-10-05pkgtools/url2pkg: fixed migration of Python packages from GitHub to PyPIrillig2-84/+350
2019-10-05pkgtools/url2pkg: ignore URL protocolrillig2-18/+68
The MASTER_SITE_GNU still uses http:// for downloading the distfiles. Since typical URLs today use https://, ignore the protocol when matching the given URL against the MASTER_SITE_* variables from mk/fetch/sites.mk.
2019-10-05pkgtools/url2pkg: improve URL handling for SourceForgerillig2-410/+538
* Improved handling of SourceForge URLs * Fixed wrong HOMEPAGE for URLs composed from MASTER_SITE_* * Improved the existing tests and added some more
2019-10-04pkgtools/url2pkg: reorganize the Python implementationrillig2-401/+604
The previous version of the code was largely work in progress. Now the code has been grouped and sorted. A few bugs have been fixed on the way: * If a PKGNAME had been added in the interactive editor session, it had been overwritten before. This was because of a typo. * The whole code has been grouped into classes, to clearly show the dependencies between the parts. * Generation of the initial Makefile has been split into smaller methods, to make them individually testable and to reduce the scope of the local variables. * When creating a package in a directory pkgsrc/local/*, "local" is not used as the primary category of the package. * GNU configure and other configure scripts are also detected if they are not placed directly in WRKSRC. * Packages that contain *.po files will have USE_PKGLOCALEDIR=yes in the package Makefile. Previously, only *.mo or *.gmo files triggered this variable. * When PKGNAME is based on DISTNAME, it is only written to the package Makefile if there is an actual prefix or transformation.
2019-10-03pkgtools/url2pkg: keep DESCR and PLIST, fix GConf detectionrillig2-98/+145
The files DESCR and PLIST are no longer overwritten. They are only created if they don't exist. The GConf schemas detection had written the include line too often, once for every schema file.
2019-10-03pkgtools/url2pkg: ignore commented variablesrillig2-5/+7
2019-10-03pkgtools/url2pkg: use filenames relative to WRKSRCrillig2-4/+8
Before this change, the Python implementation had written absolute paths to PKGCONFIG_OVERRIDE, which didn't make sense.
2019-10-03pkgtools/url2pkg: add BUILDLINK_API_DEPENDS and BUILDLINK_DEPENDSrillig3-17/+60
2019-10-03pkgtools/url2pkg: remove leftover debug print statementrillig1-7/+6
2019-10-03pkgtools/url2pkg: improve Python implementationrillig2-47/+309
* verbose mode no longer crashes * licenses and other variables are copied to the package Makefile * several more automatic tests
2019-10-03pkgtools/url2pkg: update to 19.3.1rillig3-3/+1310
Changes since 19.3.0: * Added an alternative url2pkg implementation in Python that will eventually replace the Perl implementation. Reasons are: * Perl is cumbersome to type with all the special characters * Perl does not even have a Boolean type, after all the years * Perl cannot check the number of arguments passed to subs * Python does not suffer from the above limitations * Python is available on as many platforms as Perl * The two implementations will be kept in sync until all the features have made it into the Python implementation, and everything has automatic tests. * Added the -v or --verbose command line option.
2019-10-03pkgtools/url2pkg: fix option handlingrillig1-2/+2
2019-10-02pkgtools/url2pkg: small adjustmentsrillig2-7/+15
* Fixed copy-and-paste typo in MakeMaker Perl module. * Added -v command line option.
2019-10-01pkgtools/url2pkg: update to 19.3.0rillig4-33/+160
Changes since 2.37: * Test dependencies in Perl MakeMaker modules are copied to the package Makefile. * Unknown dependencies in Perl MakeMaker modules no longer abort url2pkg but instead are added as "# TODO" dependencies to the package Makefile. * The license from Perl MakeMaker and Python modules is copied to the package Makefile. * The build dependencies, COMMENT and HOMEPAGE from Python setuptools modules are copied to the package Makefile. * No more "undefined $url" when running url2pkg in a directory that already has a package Makefile and is extracted.
2019-10-01pkgtools/url2pkg: update to 2.37rillig1-2/+2
Changes since 2.36: * Fixed generation of the package Makefile. Due to a typo, the line that included bsd.pkg.mk had been omitted, making any generated package fail.
2019-09-13pkgtools/url2pkg: refactor to group the subs that modify Makefile linesrillig2-149/+170
2019-09-13pkgtools/url2pkg: use MetaCPAN HOMEPAGE for Perl modulesrillig2-22/+65
2019-09-13pkgtools/url2pkg: refactor code for determining WRKSRC into separate subrillig1-12/+11
2019-09-13pkgtools/url2pkg: fix typo, left over from manual testingrillig1-1/+1
2019-09-12pkgtools/url2pkg: replace CRLF with LFrillig1-89/+89
2019-09-12pkgtools/url2pkg: update to 2.36rillig4-18/+132
Changes since 2.35: * Added support for Module::Build Perl modules.
2019-09-12pkgtools/url2pkg: refactoring: don't use experimental smartmatchrillig1-12/+10
2019-09-12pkgtools/url2pkg: strip leading v from distfile version numberrillig2-45/+112
2019-09-12pkgtools/url2pkg: update to 2.35rillig2-49/+97
Changes since 2.34: * Python packages get a PKGNAME variable containing PYPKGPREFIX * Refactoring: merged duplicate code for reading dependencies
2019-09-12pkgtools/url2pkg: split Perl package code into separate subsrillig1-26/+29
2019-09-12pkgtools/url2pkg: discover test cases automaticallyrillig1-13/+8
2019-09-11pkgtools/url2pkg: update to 2.34rillig3-39/+53
Changes since 2.33: * code cleanup in MakeMaker.pm * don't create a PLIST for Perl packages * allow Python dependencies from setup.py to use spaces around >= * properly indented Python code according to PEP 8 * added mock for setuptools.find_package * only try to migrate a package from GitHub to PyPI if it is really a Python package on GitHub
2019-09-09url2pkg 2.33: fix cargo packaging typo.maya1-2/+2
We don't have a third match to the regex.
2019-08-18pkgtools/url2pkg: rewrite regular expression to avoid confusing mceditrillig1-2/+2
2019-08-18pkgtools/url2pkg: add a few more testsrillig2-12/+64
2019-08-18pkgtools/url2pkg: document and clean up the coderillig2-41/+47