<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hey,<div class="">If I use&nbsp;<br class=""><div class="">
<blockquote type="cite" class="">build {<br class="">&nbsp;&nbsp;&nbsp;system -C ${worksrcpath} "java -jar filename.jar”<br class="">}</blockquote><div class=""><br class=""></div>After changing the file name and others, It gives me that&nbsp;</div><div class=""><div style="margin: 0px; font-size: 16px; line-height: normal; font-family: Menlo;" class="">Error: org.macports.build for port civl returned: bad option -C</div><div style="margin: 0px; font-size: 16px; line-height: normal; font-family: Menlo;" class=""><br class=""></div><div style="margin: 0px; line-height: normal;" class=""><span style="font-family: Avenir; font-size: 14px;" class="">In details, I edit it like this:&nbsp;</span></div><div style="margin: 0px; line-height: normal;" class="">build {</div><div style="margin: 0px; line-height: normal;" class="">&nbsp; &nbsp;system -C ${worksrcpath}/lib "java -jar ${name}-${version}_${rev}.jar"</div><div style="margin: 0px; line-height: normal;" class="">}</div><div class=""><br class=""></div><div class="">Am I doing something wrong?&nbsp;</div>---------------------------------------------------------------------------------------------------------------<br class=""><br class="">Note: It might appear my name as&nbsp;"Ziad Ali" instaed of&nbsp;"Abdulrahman Alshammari".&nbsp;<br class="">This is an issue that I am trying to&nbsp;fix.

</div>
<br class=""><div><blockquote type="cite" class=""><div class="">On Apr 22, 2016, at 10:36 PM, Ryan Schmidt &lt;<a href="mailto:ryandesign@macports.org" class="">ryandesign@macports.org</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div class=""><br class="">On Apr 22, 2016, at 3:46 PM, Abdulrahman Alshammari wrote:<br class=""><br class=""><blockquote type="cite" class="">The original installation of the software that I am trying to make a port for, is using the command line: <br class="">Java -jar filename.jar <br class=""><br class="">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.<br class=""></blockquote><br class="">Do you mean that you need to run "java -jar filename.jar" to build/install the software? If so, you could write something like:<br class=""><br class="">build {<br class=""> &nbsp;&nbsp;&nbsp;system -C ${worksrcpath} "java -jar filename.jar"<br class="">}<br class=""><br class="">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.<br class=""><br class=""></div></div></blockquote></div><br class=""></div></body></html>