Permalink
Showing
with
143 additions
and 0 deletions.
| @@ -0,0 +1,70 @@ | ||
| # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 | ||
|
|
||
| PortSystem 1.0 | ||
| PortGroup java 1.0 | ||
|
|
||
| name NetBeans | ||
| set name_lower [string tolower ${name}] | ||
| version 11.0 | ||
| categories aqua devel java | ||
| license Apache-2 | ||
| maintainers openmaintainer {amake @amake} | ||
| supported_archs noarch | ||
|
|
||
| description Java integrated development environment | ||
| long_description \ | ||
| NetBeans IDE lets you quickly and easily develop Java desktop, mobile, and \ | ||
| web applications, as well as HTML5 applications with HTML, JavaScript, and \ | ||
| CSS. The IDE also provides a great set of tools for PHP and C/C++ \ | ||
| developers. It is free and open source and has a large community of users \ | ||
| and developers around the world. | ||
|
|
||
| homepage https://netbeans.apache.org/ | ||
|
|
||
| platforms darwin | ||
|
|
||
| distname incubating-${name_lower}-${version}-bin | ||
| master_sites apache:incubator/${name_lower}/incubating-${name_lower}/incubating-${version} | ||
|
|
||
| checksums rmd160 5b976a38d5a7e2a0fe87fbcd5d772ddfc54ec13d \ | ||
| sha256 d0a9c8bfe8f22e5a4504573ab57a09580be6eda24268330c6aa8ff67ecd7b0fe \ | ||
| size 318063051 | ||
|
|
||
| worksrcdir ${name_lower} | ||
|
|
||
| use_zip yes | ||
| use_configure no | ||
|
|
||
| java.version 1.8+ | ||
|
|
||
| build {} | ||
|
|
||
| post-extract { | ||
| delete {*}[glob ${worksrcpath}/bin/*.exe] | ||
| } | ||
|
|
||
| destroot { | ||
| xinstall -m 0755 -d ${destroot}/${prefix}/share/java | ||
|
|
||
| set target_dir ${prefix}/share/java/${name_lower} | ||
| copy ${worksrcpath} ${destroot}/${target_dir} | ||
| ln -s ${target_dir}/bin/${name_lower} ${destroot}/${prefix}/bin/${name_lower} | ||
|
|
||
| set app ${destroot}${applications_dir}/Apache\ ${name}\ ${version}.app | ||
| xinstall -d ${app}/Contents/MacOS | ||
| ln -s ${target_dir}/bin/${name_lower} ${app}/Contents/MacOS/${name_lower} | ||
|
|
||
| xinstall -d ${app}/Contents/Resources | ||
| # Icon from | ||
| # https://github.com/apache/incubator-netbeans/blob/master/nb/ide.branding/release/netbeans.icns | ||
| # Plist from experimental Mac app | ||
| # https://github.com/rtaneja1/incubator-netbeans/blob/installer-bin-11vc4/nbbuild/installer/binaries/Apache-NetBeans-11.0-bin-macosx.dmg | ||
| xinstall -m 0644 ${filespath}/Info.plist ${app}/Contents/ | ||
| xinstall -m 0644 ${filespath}/${name_lower}.icns ${app}/Contents/Resources/ | ||
| } | ||
|
|
||
| universal_variant no | ||
|
|
||
| livecheck.type regex | ||
| livecheck.url https://netbeans.apache.org/download/index.html | ||
| livecheck.regex {Apache NetBeans (\d+(?:\.\d+)*)} |
| @@ -0,0 +1,73 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <!-- | ||
| Licensed to the Apache Software Foundation (ASF) under one | ||
| or more contributor license agreements. See the NOTICE file | ||
| distributed with this work for additional information | ||
| regarding copyright ownership. The ASF licenses this file | ||
| to you under the Apache License, Version 2.0 (the | ||
| "License"); you may not use this file except in compliance | ||
| with the License. You may obtain a copy of the License at | ||
| http://www.apache.org/licenses/LICENSE-2.0 | ||
| Unless required by applicable law or agreed to in writing, | ||
| software distributed under the License is distributed on an | ||
| "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
| KIND, either express or implied. See the License for the | ||
| specific language governing permissions and limitations | ||
| under the License. | ||
| --> | ||
| <!DOCTYPE plist SYSTEM "file://localhost/System/Library/DTDs/PropertyList.dtd"> | ||
| <plist version="1.0"> | ||
| <dict> | ||
| <key>CFBundleName</key> | ||
| <string>Apache NetBeans 11.0</string> | ||
|
|
||
| <key>CFBundleVersion</key> | ||
| <string>11.0</string> | ||
|
|
||
| <key>CFBundleExecutable</key> | ||
| <string>netbeans</string> | ||
|
|
||
| <key>CFBundlePackageType</key> | ||
| <string>APPL</string> | ||
|
|
||
| <key>CFBundleShortVersionString</key> | ||
| <string>11.0</string> | ||
|
|
||
| <key>CFBundleIdentifier</key> | ||
| <string>org.netbeans.ide.nbide.11.0</string> | ||
|
|
||
| <key>CFBundleSignature</key> | ||
| <string>NETB</string> | ||
|
|
||
| <key>CFBundleInfoDictionaryVersion</key> | ||
| <string>6.0</string> | ||
|
|
||
| <key>CFBundleIconFile</key> | ||
| <string>netbeans.icns</string> | ||
|
|
||
| <key>CFBundleDocumentTypes</key> | ||
| <array> | ||
| <dict> | ||
| <key>CFBundleTypeName</key> | ||
| <string>public.shell-script</string> | ||
| <key>CFBundleTypeRole</key> | ||
| <string>Editor</string> | ||
| <key>LSItemContentTypes</key> | ||
| <array> | ||
| <string>public.shell-script</string> | ||
| </array> | ||
| </dict> | ||
| </array> | ||
|
|
||
| <key>NSHighResolutionCapable</key> | ||
| <true/> | ||
|
|
||
| <key>NSSupportsAutomaticGraphicsSwitching</key> | ||
| <true/> | ||
|
|
||
| </dict> | ||
| </plist> |
Binary file not shown.