Skip to content

Commit

Permalink
Merge pull request ra3xdh#901 from ra3xdh/add_contrib
Browse files Browse the repository at this point in the history
Upload install scripts
  • Loading branch information
ra3xdh authored Aug 22, 2024
2 parents b476f64 + 3000533 commit d5c36a1
Show file tree
Hide file tree
Showing 9 changed files with 314 additions and 0 deletions.
Binary file added contrib/InnoSetup/misc/big.qucs.ico
Binary file not shown.
2 changes: 2 additions & 0 deletions contrib/InnoSetup/misc/docsite.url
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[InternetShortcut]
URL=https://qucs-s-help.readthedocs.io/
185 changes: 185 additions & 0 deletions contrib/InnoSetup/misc/gpl.rtf

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions contrib/InnoSetup/misc/mingw.url
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[InternetShortcut]
URL=http://mingw-w64.sourceforge.net/
Binary file added contrib/InnoSetup/misc/qucs32x32.ico
Binary file not shown.
Binary file added contrib/InnoSetup/misc/qucs64x64.ico
Binary file not shown.
2 changes: 2 additions & 0 deletions contrib/InnoSetup/misc/website.url
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[InternetShortcut]
URL=https://ra3xdh.github.io/
71 changes: 71 additions & 0 deletions contrib/InnoSetup/qucs.iss
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
;
; qucs.iss - inno Setup script file
;
; Copyright (C) 2005-2011 Stefan Jahn <stefan@lkcc.org>
; Copyright (C) 2014-2016 Guilherme Brondani Torri <guitorri@gmail.com>
;
; This is free software; you can redistribute it and/or modify
; it under the terms of the GNU General Public License as published by
; the Free Software Foundation; either version 2, or (at your option)
; any later version.
;
; This software is distributed in the hope that it will be useful,
; but WITHOUT ANY WARRANTY; without even the implied warranty of
; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
; GNU General Public License for more details.
;
; You should have received a copy of the GNU General Public License
; along with this package; see the file COPYING. If not, write to
; the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor,
; Boston, MA 02110-1301, USA.
;


#define RELEASE "24.3.0"
#define BASENAME "qucs-s"
#define APPNAME "Qucs-S"
#define APPVERNAME "Quite Universal Circuit Simulator 24.3.0"
#define URL "https://ra3xdh.github.io/"
#define TREE "c:\msys64\home\vvk\qucs_s_win64\"

[Setup]
AppName={# APPNAME}
AppVerName={# APPVERNAME}
AppPublisher=The Qucs Team
AppPublisherURL={# URL}
AppSupportURL={# URL}
AppUpdatesURL={# URL}
DefaultDirName={pf}\Qucs-S
DefaultGroupName=Qucs-S
AllowNoIcons=yes
LicenseFile={# TREE}\misc\gpl.rtf
OutputBaseFilename={# BASENAME}-{# RELEASE}-setup
Compression=lzma
SolidCompression=yes
ChangesEnvironment=yes
UsePreviousAppDir=yes

; [Registry]
; Root: HKLM; Subkey: SYSTEM\CurrentControlSet\Control\Session Manager\Environment; ValueType: string; ValueName: QUCSDIR; ValueData: "{app}"; Flags: deletevalue createvalueifdoesntexist noerror; MinVersion: 0,4.00.1381

[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked

[Files]
Source: "{# TREE}\bin\*"; DestDir: "{app}\bin"; Flags: ignoreversion recursesubdirs createallsubdirs
; Source: "{# TREE}\include\*"; DestDir: "{app}\include"; Flags: ignoreversion recursesubdirs createallsubdirs
; Source: "{# TREE}\lib\*"; DestDir: "{app}\lib"; Flags: ignoreversion recursesubdirs createallsubdirs
Source: "{# TREE}\misc\*"; DestDir: "{app}\misc"; Flags: ignoreversion recursesubdirs createallsubdirs
Source: "{# TREE}\lib\*"; DestDir: "{app}\lib"; Flags: ignoreversion recursesubdirs createallsubdirs
Source: "{# TREE}\share\*"; DestDir: "{app}\share"; Flags: ignoreversion recursesubdirs createallsubdirs

[Icons]
Name: "{group}\Qucs-S Simulator"; Filename: "{app}\bin\qucs-s.exe"; IconFilename: "{app}\misc\qucs64x64.ico"; WorkingDir: "{app}\bin"
Name: "{group}\Visit the Qucs Web Site"; Filename: "{app}\misc\website.url"
Name: "{group}\Technical Online Documentation"; Filename: "{app}\misc\docsite.url"
Name: "{group}\{cm:UninstallProgram,Qucs}"; Filename: "{uninstallexe}"
Name: "{userdesktop}\Qucs-S"; Filename: "{app}\bin\qucs-s.exe"; IconFilename: "{app}\misc\qucs64x64.ico"; WorkingDir: "{app}\bin"; Tasks: desktopicon




52 changes: 52 additions & 0 deletions contrib/gentoo/qucs_s.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

if [[ ${PV} == "9999" ]]; then
EGIT_REPO_URI="https://github.com/ra3xdh/qucs_s.git"
inherit git-r3
else
SRC_URI="https://github.com/ra3xdh/qucs_s/releases/download/${PV}/${P}.tar.gz"
KEYWORDS="~amd64 ~x86"
fi

inherit cmake-multilib xdg-utils

DESCRIPTION="Quite universal circuit simulator with SPICE"
HOMEPAGE="https://github.com/ra3xdh/qucs_s"

LICENSE="GPL-2"
SLOT="0"
IUSE=""
RESTRICT="mirror"

DEPEND="
dev-qt/qtsvg:6
sci-electronics/ngspice
"
RDEPEND="${DEPEND}"
BDEPEND="
dev-qt/qttools:6
sys-devel/flex
sys-devel/bison
app-text/dos2unix
dev-util/gperf
"

multilib_src_configure() {
local mycmakeargs=(
-DWITH_QT6=ON
-DCMAKE_INSTALL_PREFIX=/usr
)
cmake_src_configure
}

pkg_postinst() {
xdg_icon_cache_update
}

pkg_postrm() {
xdg_icon_cache_update
}

0 comments on commit d5c36a1

Please sign in to comment.