[macports-ports] branch master updated: charls: initial commit

Ryan Schmidt ryandesign at macports.org
Mon May 21 09:36:10 UTC 2018


On May 21, 2018, at 04:04, Vincent Habchi wrote:

>>> +worksrcdir          team-charls-charls-6fa4f2b
>> 
>> You should remove this line. The github portgroup handles this for you.
> 
> Nope. If I do, I get an error:
> 
> Executing:  cd "/opt/local/var/macports/build/_macports-ports_graphics_charls/charls/work" && /usr/bin/gzip -dc '/opt/local/var/macports/distfiles/charls/charLS-2.0.0.tar.gz' | /usr/bin/tar -xf - 
> Error: Failed to extract charls: can't read "workdir": no such variable

Ah, it's because you specified the GitHub project name as "charLS" but the project name is actually "charls". Fix this in the github.setup line, and then you can remove the unnecessary name and worksrcdir lines.


Index: Portfile
===================================================================
--- Portfile	(revision 146638)
+++ Portfile	(working copy)
@@ -6,8 +6,7 @@
 PortGroup           github  1.0
 PortGroup           compiler_blacklist_versions 1.0
 
-github.setup        team-charls charLS 2.0.0 
-name                charls
+github.setup        team-charls charls 2.0.0
 categories          graphics
 maintainers         {vince @Veence}
 description         CharLS is an implementation of JPEG-LS
@@ -20,7 +19,5 @@
                     sha256  a7c6f163889b469dd5e29b9c79ba5b6d076d90df3c21653b90eaf4d5a6ed11f7 \
                     size    4963354
 
-worksrcdir          team-charls-charls-6fa4f2b
-
 # Must have XCode > 6 for C++14 support
 compiler.blacklist-append   {clang < 602}


This error message is confusing. I'm not sure exactly where it's coming from or how we can improve it.





More information about the macports-dev mailing list