This is the library part for kicad-devel (repo copied from kicad-library)

Update to r20180104085644
Add the port to cad/Makefile
This commit is contained in:
Michael Reifenberger 2018-01-12 20:12:44 +00:00
parent 187f9d8ad9
commit 3d96bddf91
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=458868
7 changed files with 8639 additions and 0 deletions

View file

@ -47,6 +47,7 @@
SUBDIR += kicad
SUBDIR += kicad-devel
SUBDIR += kicad-library
SUBDIR += kicad-library-devel
SUBDIR += klayout
SUBDIR += layouteditor
SUBDIR += ldraw

View file

@ -0,0 +1,35 @@
# Created by: Thierry Thomas <thierry@FreeBSD.org>
# $FreeBSD$
PORTNAME= kicad
DISTVERSION= r${GIT_SRC_DATE}
CATEGORIES= cad
PKGNAMESUFFIX= -library
MAINTAINER= mr@FreeBSD.org
COMMENT= Schematic and 3D libraries supported by KiCad team
LICENSE= GPLv2
RUN_DEPENDS= kicad:cad/kicad-devel
CONFLICTS= kicad-4.*
USE_GITHUB= yes
GH_ACCOUNT= KiCad
GH_PROJECT= kicad-library
GH_TAGNAME= 758be27c7697b7ce3d4e0d6c9bb32fb6ff962a32
USES= cmake
NO_ARCH= yes
.include "Makefile.git_rev"
# Updating to new rev:
# sh files/newVersion.sh
# make install #breaks probably due to plist differences
# make makeplist > pkg-plist #One has to edit/review the generated plist
# make generate-plist && make check-plist
.include <bsd.port.mk>

View file

@ -0,0 +1,2 @@
GIT_SRC_HASH= fb8450c17bf92bdfcec424db51586957fb368066
GIT_SRC_DATE= 20180104085644

View file

@ -0,0 +1,3 @@
TIMESTAMP = 1515786539
SHA256 (KiCad-kicad-library-r20180104085644-758be27c7697b7ce3d4e0d6c9bb32fb6ff962a32_GH0.tar.gz) = db4f3b400ebeb9fe3a80e2713bfbfb91576604abdc1ebc2bcafa266150246347
SIZE (KiCad-kicad-library-r20180104085644-758be27c7697b7ce3d4e0d6c9bb32fb6ff962a32_GH0.tar.gz) = 544868533

View file

@ -0,0 +1,42 @@
#!/bin/sh
#GIT_SRC_HASH=`cd kicad-repo; git log -n 1 --pretty=format:"%H"`
#GIT_SRC_DATE=`cd kicad-repo; git log -n 1 --date=iso-local -n 1 --pretty=format:"%cd" | \
# cut -c '1-19' | sed -e 's,-,,g' -e 's,:,,g' -e 's, ,,g'`
CURDIR=`pwd`
WRKDIR=`pwd`/work
#mkdir -p "${WRKDIR}"
if [ \! -d "${CURDIR}/kicad-library" ]; then
git clone https://github.com/KiCad/kicad-library.git -b master "${CURDIR}/kicad-library";
else
cd "${CURDIR}/kicad-library"
git pull;
fi
#if [ \! -d "${CURDIR}/kicad-repo" ]; then
# git clone https://git.launchpad.net/kicad -b master "${CURDIR}/kicad-repo";
#else
# cd "${CURDIR}/kicad-repo"
# git pull https://git.launchpad.net/kicad;
#fi
cd "${CURDIR}/kicad-library"
GIT_SRC_HASH=`git log -n 1 --pretty=format:"%H"`;
GIT_SRC_DATE=`git log -n 1 --date=iso-local -n 1 --pretty=format:"%cd" | \
cut -c '1-19' | sed -e 's,-,,g' -e 's,:,,g' -e 's, ,,g'`
echo "$GIT_SRC_HASH, $GIT_SRC_DATE"
echo "GIT_SRC_HASH= ${GIT_SRC_HASH}" > ${CURDIR}/Makefile.git_rev
echo "GIT_SRC_DATE= ${GIT_SRC_DATE}" >> ${CURDIR}/Makefile.git_rev
#mkdir -p "${WRKDIR}/kicad-library-master"
#mkdir -p "${WRKDIR}/kicad-r${GIT_SRC_DATE}"
#cd "${CURDIR}/kicad-repo"
#find . -type d -name .git -prune -o -print | cpio -pdamuv "${WRKDIR}/kicad-r${GIT_SRC_DATE}";
#cd "${CURDIR}/kicad-library"
#find . -type d -name .git -prune -o -print | cpio -pdamuv "${WRKDIR}/kicad-library-master"
#cd "${WRKDIR}"
#tar cvfy /usr/ports/distfiles/kicad/kicad-r${GIT_SRC_DATE}.tar.bz2 \
# kicad-r${GIT_SRC_DATE} kicad-library-master

View file

@ -0,0 +1,8 @@
This port installs the official schematic and 3D libraries supported by the
KiCad library team.
The footprint libraries are the *.pretty repos themselves and are used online by
default. If you want to download them locally, the library-repos-install.bat and
library-repos-install.sh scripts in the KiCad source can do this automatically.
WWW: https://github.com/KiCad/kicad-library

File diff suppressed because it is too large Load diff