Re: ports that contain JAR file

2016-04-27 Thread Brandon Allbery
On Wed, Apr 27, 2016 at 10:49 AM, Abdulrahman Alshammari <
a.tu...@hotmail.com> wrote:

> 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
>

I think it's actually -W, not -C. (Sadly, someone seems to have deleted the
relevant section of guide.macports.org, perhaps inadvertently; it looks
very work-in-progress now, but the previously existing documentation for
"system" is gone.)

-- 
brandon s allbery kf8nh   sine nomine associates
allber...@gmail.com  ballb...@sinenomine.net
unix, openafs, kerberos, infrastructure, xmonadhttp://sinenomine.net
___
macports-dev mailing list
macports-dev@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-dev


Re: ports that contain JAR file

2016-04-27 Thread Abdulrahman Alshammari
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  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.
> 

___
macports-dev mailing list
macports-dev@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-dev


Re: ports that contain JAR file

2016-04-24 Thread Ryan Schmidt

On Apr 22, 2016, at 9:43 PM, Abdulrahman Alshammari wrote:

> On Apr 22, 2016, at 10:36 PM, Ryan Schmidt 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.
> 
> Originally, after unzip the file, the user write java -jar file.jar in 
> terminal to install the software, then the user can use it. I think the first 
> choice fit very well. What do you think?

Yes, to a point. If "java -jar file.jar" builds something, then it should be 
called in the build phase. But if "java -jar file.jar" installs files, then it 
should be in the destroot phase. In addition, you'll need to figure out how to 
tell it where to install the files; they must be placed inside 
${destroot}${prefix}.

___
macports-dev mailing list
macports-dev@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-dev


Re: ports that contain JAR file

2016-04-22 Thread Abdulrahman Alshammari
Hey,
Originally, after unzip the file, the user write java -jar file.jar in terminal 
to install the software, then the user can use it. I think the first choice fit 
very well. What do you think?

---

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  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.
> 

___
macports-dev mailing list
macports-dev@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-dev


Re: ports that contain JAR file

2016-04-22 Thread Ryan Schmidt

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.

___
macports-dev mailing list
macports-dev@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-dev


ports that contain JAR file

2016-04-22 Thread Abdulrahman Alshammari
Hey all,

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.

-Abdul
 
---

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

___
macports-dev mailing list
macports-dev@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-dev


Re: Jar File

2016-03-21 Thread Ryan Schmidt

On Mar 17, 2016, at 4:45 PM, Abdulrahman Alshammari wrote:

> I am almost done from biuilding the portfile and I just need someone to 
> answer my question. my software is simply as jar file.
> Is it required to convert the jar files into DMG extension file ?

No. If the software is distributed as a .jar file, or zip file, or tar.bz2 
file, or any other kind of file, that is the file the port would download from 
the upstream server, and then extract or manipulate in whatever way necessary. 
In the case of a .jar file, presumably no manipulation would be necessary, so 
you would clear "extract.only" and copy the file from distpath to where it 
needs to go inside destroot.

___
macports-dev mailing list
macports-dev@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-dev


Jar File

2016-03-19 Thread Abdulrahman Alshammari
Hey,
I am almost done from biuilding the portfile and I just need someone to answer 
my question. my software is simply as jar file.
Is it required to convert the jar files into DMG extension file ?

Please let me know ASAP.
Thanks
Abdul
___
macports-dev mailing list
macports-dev@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-dev