ports that contain JAR file

Abdulrahman Alshammari a.turqi at hotmail.com
Wed Apr 27 07:49:28 PDT 2016


Hey,
If I use 
> build {
>    system -C ${worksrcpath} "java -jar filename.jar”
> }

After changing the file name and others, It gives me that 
Error: org.macports.build for port civl returned: bad option -C

In details, I edit it like this: 
build {
   system -C ${worksrcpath}/lib "java -jar ${name}-${version}_${rev}.jar"
}

Am I doing something wrong? 
---------------------------------------------------------------------------------------------------------------

Note: It might appear my name as "Ziad Ali" instaed of "Abdulrahman Alshammari". 
This is an issue that I am trying to fix.

> On Apr 22, 2016, at 10:36 PM, Ryan Schmidt <ryandesign at macports.org> wrote:
> 
> 
> On Apr 22, 2016, at 3:46 PM, Abdulrahman Alshammari wrote:
> 
>> The original installation of the software that I am trying to make a port for, is using the command line: 
>> Java -jar filename.jar 
>> 
>> Is there a port of software that used to use the same way of installation before the port build. In other words, I want to compare the portfile I have with similar portfiles so I can learn from them.
> 
> Do you mean that you need to run "java -jar filename.jar" to build/install the software? If so, you could write something like:
> 
> build {
>    system -C ${worksrcpath} "java -jar filename.jar"
> }
> 
> Or did you mean that the user will run "java -jar filename.jar" to run the software after it is installed? An example of this kind of port is antlr3 but there are several others.
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-dev/attachments/20160427/024bdc07/attachment-0001.html>


More information about the macports-dev mailing list