Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add klayout #20396

Closed
wants to merge 18 commits into from
Closed
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions recipes/klayout/build.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
call %SRC_DIR%\build.bat
cp %SRC_DIR%\bin-release\klayout.exe %prefix%\bin
7 changes: 7 additions & 0 deletions recipes/klayout/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash
"${SRC_DIR}/build.sh"
echo "bin-release Contents"
echo "--------------------"
ls bin-release
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

find? (if you want to make sure to list everything recursively?)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll update that if necessary for debug.

echo "--------------------"
cp bin-release/klayout "${PREFIX}/bin"
81 changes: 81 additions & 0 deletions recipes/klayout/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
# Note: there are many handy hints in comments in this example -- remove them when you've finalized your recipe
# If your package is python based, we recommend using Grayskull to generate it instead:
# https://github.com/conda-incubator/grayskull

# Jinja variables help maintain the recipe as you'll update the version only here.
# Using the name variable with the URL in line 14 is convenient
# when copying and pasting from another recipe, but not really needed.
{% set name = "klayout" %}
{% set version = "0.27.11" %}

package:
name: {{ name|lower }}
version: {{ version }}

source:
url: https://github.com/simplejson/simplejson/releases/download/{{ version }}/klayout-{{ version }}.tar.gz
curtisma marked this conversation as resolved.
Show resolved Hide resolved
sha256: cc14c4840504c6b623548c0af1600c933791b2c76d012bda3468a3610b3ae15a
# sha256 is the preferred checksum -- you can get it for a file with:
# `openssl sha256 <file name>`.
# You may need the openssl package, available on conda-forge:
# `conda install openssl -c conda-forge``

build:
# Uncomment the following line if the package is pure Python and the recipe is exactly the same for all platforms.
# It is okay if the dependencies are not built for all platforms/versions, although selectors are still not allowed.
# See https://conda-forge.org/docs/maintainer/knowledge_base.html#noarch-python for more details.
# noarch: python
# If the installation is complex, or different between Unix and Windows, use separate bld.bat and build.sh files instead of this key.
# By default, the package will be built for the Python versions supported by conda-forge and for all major OSs.
# Add the line "skip: True # [py<35]" (for example) to limit to Python 3.5 and newer, or "skip: True # [not win]" to limit to Windows.
# More info about selectors can be found in the conda-build docs:
# https://docs.conda.io/projects/conda-build/en/latest/resources/define-metadata.html#preprocessing-selectors
number: 0

requirements:
build:
# If your project compiles code (such as a C extension) then add the required compilers as separate entries here.
# Compilers are named 'c', 'cxx' and 'fortran'.
- {{ compiler('cxx') }}

host:
# All Platforms
- python>3
- pip
- ruby>2
- Qt>=5
- make
- zlib
# Windows
- expat # [win]
- curl # [win]
- pthreads-win32 # [win]

test:
# For python packages, it is useful to run pip check. However, sometimes the
# metadata used by pip is out of date. Thus this section is optional if it is
# failing.
commands:
- klayout -v

about:
home: https://www.klayout.de/
summary: 'Your Mask Layout Friend'
description: |
- View: Fast and accurate viewing of huge layout files
- Edit: Draw, modify and transform hierarchical layout
- Generate: Script layout generators, PCells and layout transformation tools
- Analyze: Search, verify, and measure layout and code analysis scripts
license: GPL-2.0-or-later
license_family: GPL
license_file: LICENSE
doc_url: https://www.klayout.de/doc.html
dev_url: https://github.com/KLayout/klayout

extra:
recipe-maintainers:
# GitHub IDs for maintainers of the recipe.
# Always check with the people listed below if they are OK becoming maintainers of the recipe. (There will be spam!)
- curtisma
- klayoutmatthias
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree to be co-maintainer.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

- proppy