Skip to content

Instantly share code, notes, and snippets.

@kou1okada
Last active August 7, 2023 09:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kou1okada/ef7337f028f8ed408566 to your computer and use it in GitHub Desktop.
Save kou1okada/ef7337f028f8ed408566 to your computer and use it in GitHub Desktop.
cygports - Cygwin ports
HOMEPAGE="https://www.j3e.de/linux/${PN}/"
SRC_URI="https://www.j3e.de/linux/${PN}/${P}.tar.gz"
CATEGORY="Utils"
SUMMARY="Converts filenames from one encoding to another"
DESCRIPTION="Convmv is meant to help convert a single filename,
a directory tree and the contained files or a whole filesystem into a different encoding."
src_compile() {
lndirs
cd "${B}"
cygmake
}
#!/usr/bin/env bash
# to deploy selenium-webdriver-3.0.1 for ruby on cygwin
# Copyright (c) 2016 Koichi OKADA. All right reserved.
# This script is destributed under the MIT license.
: "${prefix:=/usr/local}"
: "${bindir:=/bin}"
: "${distdir:=/webdriver}"
cd "${USERPROFILE}/Downloads"
gem install selenium-webdriver
wget -N https://raw.githubusercontent.com/kou1okada/selenium/37e64baca7dbd8adaa8d29028399ab5e8b8ad39d/rb/lib/selenium/webdriver/common/port_prober.rb
cat <<EOD | md5sum -c || { echo -e "\e[31;1mError:\e[0m Wrong hash value"; exit 1; }
76463fd9a63cb3e19dc5aa6e2fde0325 *port_prober.rb
a6e0419b4e8c96afae56e4b57c1303db *$(ls -d "${HOME}/.gem/ruby/gems/selenium-webdriver-"*)/lib/selenium/webdriver/common/port_prober.rb
EOD
cp -a "$HOME/.gem/ruby/gems/selenium-webdriver-"*"/lib/selenium/webdriver/common/port_prober."{rb,rb.orig}
cp -a port_prober.rb "$HOME/.gem/ruby/gems/selenium-webdriver-"*"/lib/selenium/webdriver/common/port_prober.rb"
wget -N https://github.com/mozilla/geckodriver/releases/download/v0.11.1/geckodriver-v0.11.1-win32.zip
wget -N https://github.com/mozilla/geckodriver/releases/download/v0.11.1/geckodriver-v0.11.1-win64.zip
wget -N https://selenium-release.storage.googleapis.com/3.0/IEDriverServer_Win32_3.0.0.zip
wget -N https://selenium-release.storage.googleapis.com/3.0/IEDriverServer_x64_3.0.0.zip
cat <<EOD | md5sum -c || { echo -e "\e[31;1mError:\e[0m Wrong hash value"; exit 1; }
4ba666e144f07869a0aa5f7a4c7a2091 *IEDriverServer_Win32_3.0.0.zip
4396e6ca7fe643ef49ee137a81723a42 *IEDriverServer_x64_3.0.0.zip
789de7a6e76c75a96145dcb8c68fbeff *geckodriver-v0.11.1-win32.zip
22cfa6869b848bc82ccae93b6c697aee *geckodriver-v0.11.1-win64.zip
EOD
mkdir -p "${DESTDIR}${prefix}${distdir}"
unzip -d "${DESTDIR}${prefix}${distdir}" IEDriverServer_Win32_3.0.0.zip
unzip -d "${DESTDIR}${prefix}${distdir}" geckodriver-v0.11.1-win32.zip
cat <<'EOD' >> "/tmp/webdriver_wrapper.sh.in"
#!/usr/bin/env bash
while (( 0 < $# )); do
case "$1" in
--binary=*)
ARGS+=( "--binary=$(cygpath -w "${1#--binary=}")" )
;;
*)
ARGS+=( "$1" )
;;
esac
shift
done
"#DISTDIR#/${0##*/}" "${ARGS[@]}"
EOD
sed -e 's@#DISTDIR#@'"${prefix}${distdir}"'@g' "/tmp/webdriver_wrapper.sh.in" > "${DESTDIR}${prefix}${bindir}/webdriver_wrapper.sh"
chmod +x "${DESTDIR}${prefix}${bindir}/webdriver_wrapper.sh"
ln -s "${prefix}${bindir}/webdriver_wrapper.sh" "${DESTDIR}${prefix}${bindir}/geckodriver.exe"
ln -s "${prefix}${bindir}/webdriver_wrapper.sh" "${DESTDIR}${prefix}${bindir}/IEDriverServer.exe"
HOMEPAGE="https://wiki.gnome.org/Projects/${PN}"
#SRC_URI="http://ftp.acc.umu.se/pub/gnome/sources/${PN}/${PV%.*}/${P}.tar.xz"
#GIT_URI="git://git.gnome.org/gexiv2"
GIT_URI="https://github.com/GNOME/gexiv2.git"
GIT_TAG="gexiv2-0.10.4"
inherit git autotools
CATEGORY="Utils"
SUMMARY="gexiv2 - GObject-based wrapper around the Exiv2 library."
DESCRIPTION="gexiv2 - GObject-based wrapper around the Exiv2 library."
DEPEND="libexiv2-devel gobject-introspection"
HOMEPAGE="http://www.gnu.org/software/${PN}/"
#SRC_URI="ftp://ftp.gnu.org/pub/gnu/${PN}/${P}.tar.gz"
SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
CATEGORY="Utils"
SUMMARY="GNU GLOBAL source code tagging system"
DESCRIPTION="GNU GLOBAL is a source code tagging system that works the same way across diverse environments, such as Emacs editor, Vi editor, Less viewer, Bash shell, various web browsers, etc."
DEPEND="libncurses-devel"
HOMEPAGE="http://${PN}.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P/hts-engine/hts_engine_API}.tar.gz"
CATEGORY="Speech"
SUMMARY="The HMM-Based Speech Synthesis Engine."
DESCRIPTION="The HMM-Based Speech Synthesis Engine."
SRC_DIR=${P/hts-engine/hts_engine_API}
HOMEPAGE="https://github.com/jvinet/${PN}/"
GIT_URI=https://github.com/jvinet/${PN}.git
#GIT_TAG= # not tagged
#GIT_REV=
inherit git
# TODO: Find more smart way to determin VERSION. Current way needs `download` two times.
NAME="knock"
VERSION="$( echo "${NAME}-x-x.${ARCH}/temp/$NAME" >&2; [ -d "${NAME}-x-x.${ARCH}/temp/$NAME" ] && date -d "$( ( cd ${NAME}-x-x.${ARCH}/temp/$NAME && git log -n1 --date=iso; ) | grep Date | sed -e 's/^Date: *//g')" "+%Y%m%d.%H%M%S" || echo "x" )"
RELEASE="$( [ -d "${NAME}-x-x.$ARCH/temp/$NAME" ] && echo 1 || echo "x" )"
# DEPEND="libpcap" # Only need when knockd will be compiled.
CYGCONF_ARGS="--disable-knockd" # Cygwin does not have libpcap. Disable knockd.
CATEGORY="Utils"
SUMMARY="knock - A port knocking client."
DESCRIPTION="knock - A port knocking client."
src_compile() {
cd "${S}"
cygautoreconf
lndirs
cd "${B}"
cygconf
cygmake
}
HOMEPAGE="http://www.gphoto.org/"
#SRC_URI="https://sourceforge.net/projects/gphoto/files/${PN}/${PV}/${P}.tar.bz2/download"
#PATCH_URI=${P}-cygport.patch
GIT_URI=https://github.com/gphoto/libgphoto2.git
#GIT_TAG=libgphoto2-2_5_10-release
GIT_REV=ec0218827fb3cbb10fda0c86178ee888c4037aeb # commit 2016-10-05 05:51:21 +0000
inherit git autotools
CATEGORY="Utils"
SUMMARY="libgphoto2 - camera access and control library."
DESCRIPTION="libgphoto2 - camera access and control library."
DEPEND="libusb1.0-devel libusb-devel libxml2-devel libgd-devel libexif-devel"
src_compile() {
cd "${S}"
autoreconf -i -s -v
cd "${B}"
"${S}/configure" --prefix=/usr
cygmake
}
HOMEPAGE="https://owl.phy.queensu.ca/~phil/exiftool/"
SRC_URI="https://owl.phy.queensu.ca/~phil/exiftool/Image-ExifTool-${PV}.tar.gz"
CATEGORY="Graphics Perl Utils"
SUMMARY="libimage-exiftool-perl - Read, Write and Edit Meta Information."
DESCRIPTION="libimage-exiftool-perl - Read, Write and Edit Meta Information."
inherit perl
SRC_DIR="Image-ExifTool-${PV}"
HOMEPAGE="http://mix-mplus-ipa.osdn.jp/"
SRC_URI="
https://osdn.jp/projects/mix-mplus-ipa/downloads/63545/migu-1p-20150712.zip
https://osdn.jp/projects/mix-mplus-ipa/downloads/63545/migu-1c-20150712.zip
https://osdn.jp/projects/mix-mplus-ipa/downloads/63545/migu-1m-20150712.zip
https://osdn.jp/projects/mix-mplus-ipa/downloads/63545/migu-2m-20150712.zip
https://osdn.jp/projects/mix-mplus-ipa/downloads/63544/migmix-1p-20150712.zip
https://osdn.jp/projects/mix-mplus-ipa/downloads/63544/migmix-2p-20150712.zip
https://osdn.jp/projects/mix-mplus-ipa/downloads/63544/migmix-1m-20150712.zip
https://osdn.jp/projects/mix-mplus-ipa/downloads/63544/migmix-2m-20150712.zip
"
SRC_DIR=.
REQUIRES="fontconfig mkfontdir mkfontscale"
CATEGORY="X11"
SUMMARY="High quality Japanese font base M+ fonts and IPA fonts."
DESCRIPTION="High quality Japanese font base M+ fonts and IPA fonts."
src_compile () {
:
}
src_install () {
mkdir -p ${D}/usr/share/fonts/$PN
mkdir -p ${D}/usr/share/fonts/encodings/large
touch ${D}/usr/share/fonts/encodings/large/.$PN
for i in */*.ttf; do
install $i ${D}/usr/share/fonts/$PN
done
}
HOMEPAGE="http://hpc.jp/~mml2mid/"
SRC_URI="http://hpc.jp/~/mml530b.tgz"
SRC_DIR="mml530b/src"
src_compile() {
nkf --in-place -w *.{c,h,1}
lndirs
cygmake
}
#GIT_URI="https://github.com/git/git.git"
#GIT_TAG="v${PV}"
#inherit git autotools
CATEGORY="Audio"
SUMMARY="mml -> midi Compiler"
DESCRIPTION="'mml2mid' is a free compiler for music composition.
mml2mid compiles MML(Music Macro Language) file into
SMF(Standard MIDI File format 0 and 1)."
#DEPEND=""
--- origsrc/mml530b/src/makefile 2002-09-17 21:53:46.000000000 +0900
+++ src/mml530b/src/makefile 2022-02-01 00:32:40.854479300 +0900
@@ -1,12 +1,12 @@
# Makefile for UNIX
-BINDIR = /usr/local/bin
-MANDIR = /usr/local/man
-MANJP = ja_JP.ujis
+BINDIR = $(DESTDIR)/usr/bin
+MANDIR = $(DESTDIR)/usr/share/man
+MANJP = ja
CONFIGS =
CC = gcc
-CFLAGS = -O2 -Wall -DUNIX $(CONFIGS) # for gcc
-#CFLAGS = -g -Wall -DUNIX $(CONFIGS) # for debugging
+CFLAGS = -O2 -Wall -DUNIX $(CONFIGS) -fdiagnostics-color=always # for gcc
+#CFLAGS = -g -Wall -DUNIX $(CONFIGS) -fdiagnostics-color=always # for debugging
#CC = cc
#CFLAGS = -O -DUNIX $(CONFIGS) # for non-gcc
@@ -18,9 +18,9 @@ all : $(EXE)
install : all
strip $(EXE)
+ mkdir -p $(BINDIR) 2>/dev/null
cp $(EXE) $(BINDIR)
- mkdir $(MANDIR)/$(MANJP) 2>/dev/null || :
- mkdir $(MANDIR)/$(MANJP)/man1 2>/dev/null || :
+ mkdir -p $(MANDIR)/$(MANJP)/man1 2>/dev/null
cp mml2mid.1 $(MANDIR)/$(MANJP)/man1
clean :
HOMEPAGE="https://www.gnu.org/software/${PN}/"
#SRC_URI="https://ftp.gnu.org/gnu/${PN}/${P}.tar.gz"
SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
CATEGORY="Utils"
SUMMARY="${PN} - MS-DOS disk utirities"
DESCRIPTION="A collection of utilities to access MS-DOS disks from GNU and Unix without mounting them."
diff -crN origsrc/mtools-4.0.43/configure.in src/mtools-4.0.43/configure.in
*** origsrc/mtools-4.0.43/configure.in Sun Oct 30 04:32:48 2022
--- src/mtools-4.0.43/configure.in Mon Aug 7 18:39:47 2023
***************
*** 100,107 ****
;;
esac
! AC_CHECK_LIB(iconv, iconv)
!
dnl Checks for header files.
AC_HEADER_SYS_WAIT
--- 100,108 ----
;;
esac
! AC_CHECK_LIB(iconv,iconv,,[
! AC_CHECK_LIB(iconv,libiconv)
! ])
dnl Checks for header files.
AC_HEADER_SYS_WAIT
HOMEPAGE="https://osdn.jp/projects/${PN}/"
#SRC_URI="http://osdn.jp/projects/${PN}/downloads/59912/${P}.tar.gz" # not work
#SRC_URI="http://osdn.jp/frs/redir.php?f=/${PN}/59912/${P}.tar.gz" # not work
PATCH_URI=${P}-cygport.patch
GIT_URI=http://scm.osdn.jp/gitroot/nkf/nkf.git
GIT_TAG=v2_1_3
inherit git
CATEGORY="Utils"
SUMMARY="nkf - Network Kanji Filter."
DESCRIPTION="nkf - Network Kanji Filter."
src_compile() {
lndirs
cd "${B}"
cygmake
}
diff -crN nkf-2.1.3.orig/Makefile nkf-2.1.3/Makefile
*** nkf-2.1.3.orig/Makefile 2013-11-22 14:17:36.000000000 +0900
--- nkf-2.1.3/Makefile 2014-01-15 17:10:08.126922800 +0900
***************
*** 6,12 ****
PERL = perl
RM = rm -rf
VERSION = 2.1.3
! MKDIR = mkdir
prefix = /usr/local
PYTHON2 = python
PYTHON3 = python
--- 6,12 ----
PERL = perl
RM = rm -rf
VERSION = 2.1.3
! MKDIR = mkdir -p
prefix = /usr/local
PYTHON2 = python
PYTHON3 = python
***************
*** 43,57 ****
( cd NKF.python3 ; \
$(PYTHON3) setup.py build )
! install:
! -$(MKDIR) $(prefix)/bin
! -$(MKDIR) $(prefix)/man
! -$(MKDIR) $(prefix)/man/man1
! -$(MKDIR) $(prefix)/man/ja
! -$(MKDIR) $(prefix)/man/ja/man1
! cp -f nkf $(prefix)/bin/
! cp -f nkf.1 $(prefix)/man/man1/
! cp -f nkf.1j $(prefix)/man/ja/man1/nkf.1
shar:
-mkdir nkf-$(VERSION)
--- 43,57 ----
( cd NKF.python3 ; \
$(PYTHON3) setup.py build )
! install: nkf
! -$(MKDIR) "$(DESTDIR)$(prefix)/bin"
! -$(MKDIR) "$(DESTDIR)$(prefix)/share/man"
! -$(MKDIR) "$(DESTDIR)$(prefix)/share/man/man1"
! -$(MKDIR) "$(DESTDIR)$(prefix)/share/man/ja"
! -$(MKDIR) "$(DESTDIR)$(prefix)/share/man/ja/man1"
! cp -f nkf "$(DESTDIR)$(prefix)/bin/"
! cp -f nkf.1 "$(DESTDIR)$(prefix)/share/man/man1/"
! cp -f nkf.1j "$(DESTDIR)$(prefix)/share/man/ja/man1/nkf.1"
shar:
-mkdir nkf-$(VERSION)
HOMEPAGE="https://osdn.jp/projects/${PN}/"
#SRC_URI="http://osdn.jp/projects/${PN}/downloads/64158/${P}.tar.gz" # not work
#SRC_URI="http://osdn.jp/frs/redir.php?f=/${PN}/64158/${P}.tar.gz" # not work
PATCH_URI=${P}-cygport.patch
GIT_URI=http://scm.osdn.jp/gitroot/nkf/nkf.git
#GIT_TAG=v2_1_4 # not tagged
GIT_REV=50470507730eac4319dccc907f46f36fb168edea
inherit git
CATEGORY="Utils"
SUMMARY="nkf - Network Kanji Filter."
DESCRIPTION="nkf - Network Kanji Filter."
src_compile() {
lndirs
cd "${B}"
cygmake
}
diff -crN nkf.orig/Makefile nkf/Makefile
*** nkf.orig/Makefile 2016-02-06 00:11:16.629684800 +0900
--- nkf/Makefile 2016-02-06 00:15:04.949744000 +0900
***************
*** 6,12 ****
PERL = perl
RM = rm -rf
VERSION = 2.1.4
! MKDIR = mkdir
prefix = /usr/local
PYTHON2 = python
PYTHON3 = python
--- 6,12 ----
PERL = perl
RM = rm -rf
VERSION = 2.1.4
! MKDIR = mkdir -p
prefix = /usr/local
PYTHON2 = python
PYTHON3 = python
***************
*** 46,63 ****
install: install-main install-man install-man-ja
install-main:
! -$(MKDIR) $(prefix)/bin
! cp -f nkf $(prefix)/bin/
install-man:
! -$(MKDIR) $(prefix)/man
! -$(MKDIR) $(prefix)/man/man1
! cp -f nkf.1 $(prefix)/man/man1/
install-man-ja:
! -$(MKDIR) $(prefix)/man/ja
! -$(MKDIR) $(prefix)/man/ja/man1
! cp -f nkf.1j $(prefix)/man/ja/man1/nkf.1
shar:
-mkdir nkf-$(VERSION)
--- 46,63 ----
install: install-main install-man install-man-ja
install-main:
! -$(MKDIR) $(DESTDIR)$(prefix)/bin
! cp -f nkf $(DESTDIR)$(prefix)/bin/
install-man:
! -$(MKDIR) $(DESTDIR)$(prefix)/man
! -$(MKDIR) $(DESTDIR)$(prefix)/man/man1
! cp -f nkf.1 $(DESTDIR)$(prefix)/man/man1/
install-man-ja:
! -$(MKDIR) $(DESTDIR)$(prefix)/man/ja
! -$(MKDIR) $(DESTDIR)$(prefix)/man/ja/man1
! cp -f nkf.1j $(DESTDIR)$(prefix)/man/ja/man1/nkf.1
shar:
-mkdir nkf-$(VERSION)
HOMEPAGE="https://osdn.jp/projects/${PN}/"
#SRC_URI="http://osdn.jp/projects/${PN}/downloads/70406/${P}.tar.gz" # not work
#SRC_URI="http://osdn.jp/frs/redir.php?f=/${PN}/70406/${P}.tar.gz" # not work
PATCH_URI=${P}-cygport.patch
GIT_URI=http://scm.osdn.jp/gitroot/nkf/nkf.git
#GIT_TAG=v2_1_5 # not tagged
GIT_REV=08043eadf4abdddcf277842217e3c77a24740dc2
inherit git
CATEGORY="Utils"
SUMMARY="nkf - Network Kanji Filter."
DESCRIPTION="nkf - Network Kanji Filter."
src_compile() {
lndirs
cd "${B}"
cygmake
}
diff -crN nkf.orig/Makefile nkf/Makefile
*** nkf.orig/Makefile 2018-12-18 13:20:02.000000000 +0900
--- nkf/Makefile 2018-12-18 13:25:48.435137300 +0900
***************
*** 6,12 ****
PERL = perl
RM = rm -rf
VERSION = 2.1.5
! MKDIR = mkdir
prefix = /usr/local
PYTHON2 = python
PYTHON3 = python
--- 6,12 ----
PERL = perl
RM = rm -rf
VERSION = 2.1.5
! MKDIR = mkdir -p
prefix = /usr/local
PYTHON2 = python
PYTHON3 = python
***************
*** 46,63 ****
install: install-main install-man install-man-ja
install-main:
! -$(MKDIR) $(prefix)/bin
! cp -f nkf $(prefix)/bin/
install-man:
! -$(MKDIR) $(prefix)/man
! -$(MKDIR) $(prefix)/man/man1
! cp -f nkf.1 $(prefix)/man/man1/
install-man-ja:
! -$(MKDIR) $(prefix)/man/ja
! -$(MKDIR) $(prefix)/man/ja/man1
! cp -f nkf.1j $(prefix)/man/ja/man1/nkf.1
shar:
-mkdir nkf-$(VERSION)
--- 46,63 ----
install: install-main install-man install-man-ja
install-main:
! -$(MKDIR) $(DESTDIR)$(prefix)/bin
! cp -f nkf $(DESTDIR)$(prefix)/bin/
install-man:
! -$(MKDIR) $(DESTDIR)$(prefix)/man
! -$(MKDIR) $(DESTDIR)$(prefix)/man/man1
! cp -f nkf.1 $(DESTDIR)$(prefix)/man/man1/
install-man-ja:
! -$(MKDIR) $(DESTDIR)$(prefix)/man/ja
! -$(MKDIR) $(DESTDIR)$(prefix)/man/ja/man1
! cp -f nkf.1j $(DESTDIR)$(prefix)/man/ja/man1/nkf.1
shar:
-mkdir nkf-$(VERSION)
HOMEPAGE="http://${PN}.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P/open-jtalk/open_jtalk}.tar.gz"
PATCH_URI="open-jtalk-1.09-cygport.patch"
CATEGORY="Speech"
SUMMARY="Open JTalk is a Japanese text-to-speech synthesis system."
DESCRIPTION="Open JTalk is a Japanese text-to-speech synthesis system."
DEPEND="hts-engine"
SRC_DIR=${P/open-jtalk/open_jtalk}
CYGCONF_ARGS="--with-hts-engine-header-path=/usr/include --with-hts-engine-library-path=/usr/lib"
diff -crN open_jtalk-1.09,orig/bin/Makefile.am open_jtalk-1.09/bin/Makefile.am
*** open_jtalk-1.09,orig/bin/Makefile.am 2014-12-22 11:04:18.000000000 +0900
--- open_jtalk-1.09/bin/Makefile.am 2016-01-26 06:07:50.139485400 +0900
***************
*** 21,38 ****
bin_PROGRAMS = open_jtalk
! open_jtalk_LDADD = @top_srcdir@/text2mecab/libtext2mecab.a \
! @top_srcdir@/mecab/src/libmecab.a \
! @top_srcdir@/mecab2njd/libmecab2njd.a \
! @top_srcdir@/njd/libnjd.a \
! @top_srcdir@/njd_set_pronunciation/libnjd_set_pronunciation.a \
! @top_srcdir@/njd_set_digit/libnjd_set_digit.a \
! @top_srcdir@/njd_set_accent_phrase/libnjd_set_accent_phrase.a \
! @top_srcdir@/njd_set_accent_type/libnjd_set_accent_type.a \
! @top_srcdir@/njd_set_unvoiced_vowel/libnjd_set_unvoiced_vowel.a \
! @top_srcdir@/njd_set_long_vowel/libnjd_set_long_vowel.a \
! @top_srcdir@/njd2jpcommon/libnjd2jpcommon.a \
! @top_srcdir@/jpcommon/libjpcommon.a \
@HTS_ENGINE_LIBRARY@ -lstdc++
open_jtalk_SOURCES = open_jtalk.c
--- 21,38 ----
bin_PROGRAMS = open_jtalk
! open_jtalk_LDADD = @top_builddir@/text2mecab/libtext2mecab.a \
! @top_builddir@/mecab/src/libmecab.a \
! @top_builddir@/mecab2njd/libmecab2njd.a \
! @top_builddir@/njd/libnjd.a \
! @top_builddir@/njd_set_pronunciation/libnjd_set_pronunciation.a \
! @top_builddir@/njd_set_digit/libnjd_set_digit.a \
! @top_builddir@/njd_set_accent_phrase/libnjd_set_accent_phrase.a \
! @top_builddir@/njd_set_accent_type/libnjd_set_accent_type.a \
! @top_builddir@/njd_set_unvoiced_vowel/libnjd_set_unvoiced_vowel.a \
! @top_builddir@/njd_set_long_vowel/libnjd_set_long_vowel.a \
! @top_builddir@/njd2jpcommon/libnjd2jpcommon.a \
! @top_builddir@/jpcommon/libjpcommon.a \
@HTS_ENGINE_LIBRARY@ -lstdc++
open_jtalk_SOURCES = open_jtalk.c
diff -crN open_jtalk-1.09,orig/mecab-naist-jdic/Makefile.am open_jtalk-1.09/mecab-naist-jdic/Makefile.am
*** open_jtalk-1.09,orig/mecab-naist-jdic/Makefile.am 2015-12-02 14:39:07.000000000 +0900
--- open_jtalk-1.09/mecab-naist-jdic/Makefile.am 2016-01-26 06:07:53.450597500 +0900
***************
*** 10,16 ****
dic_DATA = char.bin matrix.bin sys.dic unk.dic
char.bin matrix.bin sys.dic unk.dic: naist-jdic.csv matrix.def left-id.def rewrite.def pos-id.def right-id.def char.def unk.def feature.def
! ../mecab/src/mecab-dict-index -d . -o . -f UTF-8 -t @MECAB_CHARSET@
clean:
rm -f char.bin matrix.bin sys.dic unk.dic
--- 10,16 ----
dic_DATA = char.bin matrix.bin sys.dic unk.dic
char.bin matrix.bin sys.dic unk.dic: naist-jdic.csv matrix.def left-id.def rewrite.def pos-id.def right-id.def char.def unk.def feature.def
! ../mecab/src/mecab-dict-index -d @top_srcdir@/mecab-naist-jdic -o . -f UTF-8 -t @MECAB_CHARSET@
clean:
rm -f char.bin matrix.bin sys.dic unk.dic
cat <<EOD
# This port is uncompleted.
# ld dies with core dump as following.
$ cd modules/core
$ LANG=C make
[ 0%] Built target opencv_core_pch_dephelp
[ 0%] Built target pch_Generate_opencv_core
[ 5%] Built target zlib
[ 5%] Linking CXX shared library ../../bin/cygopencv_core-3.1.dll
collect2: error: ld terminated with signal 11 [Segmentation fault], core dumped
/usr/lib/gcc/x86_64-pc-cygwin/4.9.3/../../../../x86_64-pc-cygwin/bin/ld: BFD (GNU Binutils) 2.25.2 assertion fail /cygdrive/i/szsz/tmpp/cygwin64/binutils/binutils-2.25-4.x86_64/src/binutils-gdb/bfd/cofflink.c:264
modules/core/CMakeFiles/opencv_core.dir/build.make:1372: recipe for target 'bin/cygopencv_core-3.1.dll' failed
make[2]: *** [bin/cygopencv_core-3.1.dll] Error 1
make[2]: *** Deleting file 'bin/cygopencv_core-3.1.dll'
CMakeFiles/Makefile2:1469: recipe for target 'modules/core/CMakeFiles/opencv_core.dir/all' failed
make[1]: *** [modules/core/CMakeFiles/opencv_core.dir/all] Error 2
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2
#--------------------------------
Hit ENTER to continue.
EOD
read
HOMEPAGE="http://opencv.org/"
#SRC_URI="https://github.com/Itseez/${PN}/archive/3.1.0.zip"
#SRC_URI="http://sourceforge.net/projects/${PN}library/files/${PN}-unix/3.1.0/${P}.zip/download"
SRC_URI="mirror://sourceforge/${PN}library/${P}.zip"
PATCH_URI="opencv-3.1.0-cygport.patch"
CATEGORY="devel library"
SUMMARY="OpenCV - open source computer vision"
DESCRIPTION="OpenCV - open source computer vision"
inherit cmake
src_compile() {
cygcmake
cygmake
}
*** opencv-3.1.0.orig/modules/core/src/parallel.cpp 2016-01-16 20:39:07.880186500 +0900
--- opencv-3.1.0/modules/core/src/parallel.cpp 2016-01-16 20:46:56.376797500 +0900
***************
*** 50,56 ****
#undef abs
#endif
! #if defined __linux__ || defined __APPLE__
#include <unistd.h>
#include <stdio.h>
#include <sys/types.h>
--- 50,56 ----
#undef abs
#endif
! #if defined __linux__ || defined __APPLE__ || defined __CYGWIN__
#include <unistd.h>
#include <stdio.h>
#include <sys/types.h>
*** opencv-3.1.0.orig/modules/core/src/system.cpp 2015-12-19 00:02:16.000000000 +0900
--- opencv-3.1.0/modules/core/src/system.cpp 2016-01-16 20:47:12.471354500 +0900
***************
*** 64,70 ****
# endif
#endif
! #if defined ANDROID || defined __linux__ || defined __FreeBSD__
# include <unistd.h>
# include <fcntl.h>
# include <elf.h>
--- 64,70 ----
# endif
#endif
! #if defined ANDROID || defined __linux__ || defined __FreeBSD__ || defined __CYGWIN__
# include <unistd.h>
# include <fcntl.h>
# include <elf.h>
***************
*** 406,412 ****
LARGE_INTEGER counter;
QueryPerformanceCounter( &counter );
return (int64)counter.QuadPart;
! #elif defined __linux || defined __linux__
struct timespec tp;
clock_gettime(CLOCK_MONOTONIC, &tp);
return (int64)tp.tv_sec*1000000000 + tp.tv_nsec;
--- 406,412 ----
LARGE_INTEGER counter;
QueryPerformanceCounter( &counter );
return (int64)counter.QuadPart;
! #elif defined __linux || defined __linux__ || defined __CYGWIN__
struct timespec tp;
clock_gettime(CLOCK_MONOTONIC, &tp);
return (int64)tp.tv_sec*1000000000 + tp.tv_nsec;
HOMEPAGE="https://www.pdflabs.com/tools/pdftk-server/"
SRC_URI="https://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/${P}-src.zip"
CATEGORY="Utils"
SUMMARY="PDFtk Server"
DESCRIPTION="PDFtk Server."
DEPEND=""
SRC_DIR=${P}-dist/pdftk
src_compile() {
lndirs
cd "${B}"
cygmake -f Makefile.Base
# Not work, because cygwin does not have gcj.
# TODO: port gcj
}
HOMEPAGE="http://www.rs.tus.ac.jp/yyusa/ricty.html"
SRC_URI="
https://github.com/google/fonts/raw/master/ofl/inconsolata/Inconsolata-Regular.ttf
https://github.com/google/fonts/raw/master/ofl/inconsolata/Inconsolata-Bold.ttf
https://osdn.jp/projects/mix-mplus-ipa/downloads/63545/migu-1m-20150712.zip
http://www.rs.tus.ac.jp/yyusa/ricty/ricty_generator-${PV}.sh
http://www.rs.tus.ac.jp/yyusa/ricty/os2version_reviser.sh
"
HASH="$(cat<<EOD
4cecd19b4a0fdefdafd7649f71f37bb3c77afe6be69edd16231fc5081b9b4c6ec57a00bfecebfcec5e8d2d27cc4ce7749ca1bdefdd31506f6e03f4f1ff474abc *Inconsolata-Bold.ttf
66fee61dc4c0331ef383b9d5bdf5e52ef0503e1a8fe60e23a4749110c744a32335e5421b8ca55d1a65e13a728fd464c05bb7ba65cbc82269b2fa678fc21eaba3 *Inconsolata-Regular.ttf
694f03fce1a80bacd3f8ab238f1d9be9066f1eea7f8ac6bb20a2f3db6247126e2d7294103477ca7d32c39ea56786c1e9caf89fa083982dd69ac1e3521ce7a48a *migu-1m-20150712.zip
ee4326b5573765bbdbf362e1696e6b1c6af43bd8527909b7ad5947deb1b043a665c63e9e3c3ccddd9c62a0b5b0559f83cdaa4be6e6fded6c314518b1dc1c491b *ricty_generator-4.0.1.sh
bd62df29db53b50356f61176707c97baafd39e731b965e223430b083a2675f037bdc155abbbbf42e73206c41126048211aa4092aa3add1f174c1538dad2f020c *os2version_reviser.sh
EOD
)"
SRC_DIR=.
DEPEND="fontforge"
REQUIRES="fontconfig mkfontdir mkfontscale"
CATEGORY="X11"
SUMMARY="Ricty - fonts for programming."
DESCRIPTION="Ricty - fonts for programming."
src_compile() {
inform "Check fingerprints:"
{ cd "${S}/../.." && echo "$HASH" | sha512sum -c; } || error "Invalid fingerprint(s)."
inform "Fingerprints is OK."
cd "${B}"
lndirs
inform "Generate Ricty"
chmod +x ricty_generator-${PV}.sh
./ricty_generator-${PV}.sh Inconsolata-{Regular,Bold}.ttf migu-1m-20150712/migu-1m-{regular,bold}.ttf
inform "Revising OS/2 version"
chmod +x os2version_reviser.sh
./os2version_reviser.sh Ricty*.ttf
}
src_install () {
mkdir -p ${D}/usr/share/fonts/$PN
mkdir -p ${D}/usr/share/fonts/encodings/large
touch ${D}/usr/share/fonts/encodings/large/.$PN
cd ${B}
install $PN*.ttf ${D}/usr/share/fonts/$PN
}
HOMEPAGE="http://www.rs.tus.ac.jp/yyusa/ricty.html"
SRC_URI="
https://github.com/google/fonts/raw/master/ofl/inconsolata/Inconsolata-Regular.ttf
https://github.com/google/fonts/raw/master/ofl/inconsolata/Inconsolata-Bold.ttf
https://osdn.jp/projects/mix-mplus-ipa/downloads/63545/migu-1m-20150712.zip
http://www.rs.tus.ac.jp/yyusa/ricty/ricty_generator-${PV}.sh
http://www.rs.tus.ac.jp/yyusa/ricty/os2version_reviser.sh
"
HASH="$(cat<<EOD
4cecd19b4a0fdefdafd7649f71f37bb3c77afe6be69edd16231fc5081b9b4c6ec57a00bfecebfcec5e8d2d27cc4ce7749ca1bdefdd31506f6e03f4f1ff474abc *Inconsolata-Bold.ttf
66fee61dc4c0331ef383b9d5bdf5e52ef0503e1a8fe60e23a4749110c744a32335e5421b8ca55d1a65e13a728fd464c05bb7ba65cbc82269b2fa678fc21eaba3 *Inconsolata-Regular.ttf
694f03fce1a80bacd3f8ab238f1d9be9066f1eea7f8ac6bb20a2f3db6247126e2d7294103477ca7d32c39ea56786c1e9caf89fa083982dd69ac1e3521ce7a48a *migu-1m-20150712.zip
aa5bb3391000a12217500d7e11f950a587abe0d3f59f68e81770d594b9f7ec4755cf7354a059ee9b9260c81dce8fa7ab442d9e4471f5e9b726bd056d1dfe17e2 *ricty_generator-4.1.1.sh
bd62df29db53b50356f61176707c97baafd39e731b965e223430b083a2675f037bdc155abbbbf42e73206c41126048211aa4092aa3add1f174c1538dad2f020c *os2version_reviser.sh
EOD
)"
SRC_DIR=.
DEPEND="fontforge"
REQUIRES="fontconfig mkfontdir mkfontscale"
CATEGORY="X11"
SUMMARY="Ricty - fonts for programming."
DESCRIPTION="Ricty - fonts for programming."
src_compile() {
inform "Check fingerprints:"
{ cd "${S}/../.." && echo "$HASH" | sha512sum -c; } || error "Invalid fingerprint(s)."
inform "Fingerprints is OK."
cd "${B}"
lndirs
inform "Generate Ricty"
chmod +x ricty_generator-${PV}.sh
./ricty_generator-${PV}.sh Inconsolata-{Regular,Bold}.ttf migu-1m-20150712/migu-1m-{regular,bold}.ttf
inform "Revising OS/2 version"
chmod +x os2version_reviser.sh
./os2version_reviser.sh Ricty*.ttf
}
src_install () {
mkdir -p ${D}/usr/share/fonts/$PN
mkdir -p ${D}/usr/share/fonts/encodings/large
touch ${D}/usr/share/fonts/encodings/large/.$PN
cd ${B}
install $PN*.ttf ${D}/usr/share/fonts/$PN
}
# This script is besed on
# https://sourceforge.net/projects/cygwin-ports/
# https://sourceforge.net/p/cygwin-ports/ruby-mechanize/
# License:
# GPLv2 (It's inherited from the license of the based script).
GIT_URI="git://github.com/sparklemotion/mechanize.git"
GIT_TAG="v${PV}"
inherit ruby git
DESCRIPTION="Ruby automated website interaction library"
HOMEPAGE="https://rubygems.org/gems/mechanize"
src_compile() { :; }
src_install() {
cd ${S}
dodir ${RUBY_VENDORLIB}
cp -rL lib/* ${D}${RUBY_VENDORLIB}
dodoc *.rdoc
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment